diff options
author | Maxim Filippov <colixer@gmail.com> | 2018-12-27 13:21:04 +0300 |
---|---|---|
committer | Maxim Filippov <colixer@gmail.com> | 2018-12-27 13:21:04 +0300 |
commit | be70272ab08356353ff3c2685dbb639477c2cdf4 (patch) | |
tree | 237259c8d32e43e70b9dfc1be81f92d0350f0742 /lib/pleroma/web/common_api/utils.ex | |
parent | 838c0242316545afa42384b8e50a401e54ad1405 (diff) | |
download | pleroma-be70272ab08356353ff3c2685dbb639477c2cdf4.tar.gz |
Treat only true and "true" as true
Diffstat (limited to 'lib/pleroma/web/common_api/utils.ex')
-rw-r--r-- | lib/pleroma/web/common_api/utils.ex | 2 |
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 d9cc52e26..b91cfc4bb 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 |