Treat any present value in "no_attachment_links" as true

This commit is contained in:
Maxim Filippov 2018-12-27 02:39:41 +03:00
parent 922abcda61
commit 838c024231

View file

@ -89,7 +89,7 @@ def make_content_html(
) do ) do
status status
|> format_input(mentions, tags, content_type) |> format_input(mentions, tags, content_type)
|> maybe_add_attachments(attachments, no_attachment_links) |> maybe_add_attachments(attachments, !!no_attachment_links)
end end
def make_context(%Activity{data: %{"context" => context}}), do: context def make_context(%Activity{data: %{"context" => context}}), do: context