Commit 838c0242 authored by Maxim Filippov's avatar Maxim Filippov 🌚

Treat any present value in "no_attachment_links" as true

parent 922abcda
......@@ -89,7 +89,7 @@ defmodule Pleroma.Web.CommonAPI.Utils do
) do
status
|> format_input(mentions, tags, content_type)
|> maybe_add_attachments(attachments, no_attachment_links)
|> maybe_add_attachments(attachments, !!no_attachment_links)
end
def make_context(%Activity{data: %{"context" => context}}), do: context
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment