aboutsummaryrefslogtreecommitdiff
path: root/lib/pleroma/web/common_api/common_api.ex
diff options
context:
space:
mode:
authorrinpatch <rinpatch@sdf.org>2019-01-18 18:31:25 +0300
committerrinpatch <rinpatch@sdf.org>2019-01-18 18:31:25 +0300
commit74346a7035d950ede143d65f8364194cb116aaf5 (patch)
treef058b3fc2edd6868511bc6f832f75374bdbd117e /lib/pleroma/web/common_api/common_api.ex
parenta38f21f51dc810221cbf910556910a10f6104956 (diff)
parent98d9dcd509ab6823e38b3ddbce1f5fc4f3d5a82c (diff)
downloadpleroma-74346a7035d950ede143d65f8364194cb116aaf5.tar.gz
Fix merge conflict
Diffstat (limited to 'lib/pleroma/web/common_api/common_api.ex')
-rw-r--r--lib/pleroma/web/common_api/common_api.ex9
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/pleroma/web/common_api/common_api.ex b/lib/pleroma/web/common_api/common_api.ex
index 9a748d65e..504670439 100644
--- a/lib/pleroma/web/common_api/common_api.ex
+++ b/lib/pleroma/web/common_api/common_api.ex
@@ -103,7 +103,14 @@ defmodule Pleroma.Web.CommonAPI do
attachments,
tags,
get_content_type(data["content_type"]),
- true
+ Enum.member?(
+ [true, "true"],
+ Map.get(
+ data,
+ "no_attachment_links",
+ Pleroma.Config.get([:instance, :no_attachment_links], false)
+ )
+ )
),
context <- make_context(inReplyTo),
cw <- data["spoiler_text"],