diff options
author | rinpatch <rinpatch@sdf.org> | 2019-01-18 18:31:25 +0300 |
---|---|---|
committer | rinpatch <rinpatch@sdf.org> | 2019-01-18 18:31:25 +0300 |
commit | 74346a7035d950ede143d65f8364194cb116aaf5 (patch) | |
tree | f058b3fc2edd6868511bc6f832f75374bdbd117e /lib/pleroma/web/common_api | |
parent | a38f21f51dc810221cbf910556910a10f6104956 (diff) | |
parent | 98d9dcd509ab6823e38b3ddbce1f5fc4f3d5a82c (diff) | |
download | pleroma-74346a7035d950ede143d65f8364194cb116aaf5.tar.gz |
Fix merge conflict
Diffstat (limited to 'lib/pleroma/web/common_api')
-rw-r--r-- | lib/pleroma/web/common_api/common_api.ex | 9 |
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"], |