diff options
author | kaniini <nenolod@gmail.com> | 2018-12-28 18:33:14 +0000 |
---|---|---|
committer | kaniini <nenolod@gmail.com> | 2018-12-28 18:33:14 +0000 |
commit | 68f483ef4cf6856c3116504987142670bc6ac76c (patch) | |
tree | 0f62dbc34b82f51b510197633504b2028f82c2b3 /lib | |
parent | 1cd825519c34762490fa44e7aa0cccf2a72826b6 (diff) | |
parent | be70272ab08356353ff3c2685dbb639477c2cdf4 (diff) | |
download | pleroma-68f483ef4cf6856c3116504987142670bc6ac76c.tar.gz |
Merge branch 'fix/no-attachment-links' into 'develop'
Treat any present value in "no_attachment_links" as true
Closes pleroma-fe#175
See merge request pleroma/pleroma!597
Diffstat (limited to 'lib')
-rw-r--r-- | lib/pleroma/web/common_api/common_api.ex | 2 |
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 5e5821561..085a95172 100644 --- a/lib/pleroma/web/common_api/common_api.ex +++ b/lib/pleroma/web/common_api/common_api.ex @@ -102,7 +102,7 @@ defmodule Pleroma.Web.CommonAPI do attachments, tags, get_content_type(data["content_type"]), - data["no_attachment_links"] + Enum.member?([true, "true"], data["no_attachment_links"]) ), context <- make_context(inReplyTo), cw <- data["spoiler_text"], |