From 838c0242316545afa42384b8e50a401e54ad1405 Mon Sep 17 00:00:00 2001 From: Maxim Filippov Date: Thu, 27 Dec 2018 02:39:41 +0300 Subject: [PATCH] Treat any present value in "no_attachment_links" as true --- lib/pleroma/web/common_api/utils.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.44.2