From: Maxim Filippov Date: Wed, 26 Dec 2018 23:39:41 +0000 (+0300) Subject: Treat any present value in "no_attachment_links" as true X-Git-Url: http://git.squeep.com/?a=commitdiff_plain;h=838c0242316545afa42384b8e50a401e54ad1405;p=akkoma Treat any present value in "no_attachment_links" as true --- 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