aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxim Filippov <colixer@gmail.com>2018-12-27 02:39:41 +0300
committerMaxim Filippov <colixer@gmail.com>2018-12-27 02:39:41 +0300
commit838c0242316545afa42384b8e50a401e54ad1405 (patch)
tree9e5931d87f998d9ce450918df23a6b6cb506bd57
parent922abcda61298a7bca48894cb9a51a52fdeab1ed (diff)
downloadpleroma-838c0242316545afa42384b8e50a401e54ad1405.tar.gz
Treat any present value in "no_attachment_links" as true
-rw-r--r--lib/pleroma/web/common_api/utils.ex2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pleroma/web/common_api/utils.ex b/lib/pleroma/web/common_api/utils.ex
index b91cfc4bb..d9cc52e26 100644
--- a/lib/pleroma/web/common_api/utils.ex
+++ b/lib/pleroma/web/common_api/utils.ex
@@ -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