@impl Provider
def build_tags(%{
object: object,
+ url: url,
user: user
}) do
attachments = build_attachments(object)
property: "og:title",
content: "#{user.name}" <> content
], []},
- {:meta, [property: "og:url", content: object.data["id"]], []},
+ {:meta, [property: "og:url", content: url], []},
{:meta,
[
property: "og:description",
|> HtmlEntities.decode()
|> String.replace(~r/<br\s?\/?>/, " ")
|> HTML.get_cached_stripped_html_for_object(object, __MODULE__)
+ |> Formatter.demojify()
|> Formatter.truncate()
end
|> HtmlEntities.decode()
|> String.replace(~r/<br\s?\/?>/, " ")
|> HTML.strip_tags()
+ |> Formatter.demojify()
|> Formatter.truncate()
end