aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMark Felder <feld@FreeBSD.org>2019-01-17 16:01:25 +0000
committerMark Felder <feld@FreeBSD.org>2019-01-17 16:01:25 +0000
commit6bc9a641ba77146815f3bf6dddab751c1cce1637 (patch)
treeaa9e5dcc54ea8b9fbaea59d9903016b6622ed6e8 /lib
parent207489aa25c1d222b0ee2aaec976210ecfc24481 (diff)
downloadpleroma-6bc9a641ba77146815f3bf6dddab751c1cce1637.tar.gz
Default to disabled in the code in case the setting is absent from config.exs
Diffstat (limited to 'lib')
-rw-r--r--lib/pleroma/web/common_api/common_api.ex2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pleroma/web/common_api/common_api.ex b/lib/pleroma/web/common_api/common_api.ex
index 7d2ac3b0f..782e7da8f 100644
--- a/lib/pleroma/web/common_api/common_api.ex
+++ b/lib/pleroma/web/common_api/common_api.ex
@@ -103,7 +103,7 @@ defmodule Pleroma.Web.CommonAPI do
attachments,
tags,
get_content_type(data["content_type"]),
- Enum.member?([true, "true"], Map.get(data, "no_attachment_links", Pleroma.Config.get([:instance, :no_attachment_links], 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"],