diff options
author | lain <lain@soykaf.club> | 2020-02-13 17:17:43 +0000 |
---|---|---|
committer | lain <lain@soykaf.club> | 2020-02-13 17:17:43 +0000 |
commit | 18a56410b821f1583d216dc55b9bd7b4d3a9c327 (patch) | |
tree | f2d2c6ea99903de009dfae33b713a6ced6224825 /test/web/common_api/common_api_utils_test.exs | |
parent | 9bb66c0b65d0f5489a836f997971e56e52d752b9 (diff) | |
parent | b312c36b8e14b6aaa450bd8509e320c9784d0f48 (diff) | |
download | pleroma-18a56410b821f1583d216dc55b9bd7b4d3a9c327.tar.gz pleroma-18a56410b821f1583d216dc55b9bd7b4d3a9c327.zip |
Merge branch 'fix/rename-no_attachment_links-setting' into 'develop'
Fix the confusingly named and inverted logic of "no_attachment_links"
See merge request pleroma/pleroma!2202
Diffstat (limited to 'test/web/common_api/common_api_utils_test.exs')
-rw-r--r-- | test/web/common_api/common_api_utils_test.exs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/web/common_api/common_api_utils_test.exs b/test/web/common_api/common_api_utils_test.exs index 4b761e039..848300ef3 100644 --- a/test/web/common_api/common_api_utils_test.exs +++ b/test/web/common_api/common_api_utils_test.exs @@ -575,11 +575,11 @@ defmodule Pleroma.Web.CommonAPI.UtilsTest do end describe "maybe_add_attachments/3" do - test "returns parsed results when no_links is true" do + test "returns parsed results when attachment_links is false" do assert Utils.maybe_add_attachments( {"test", [], ["tags"]}, [], - true + false ) == {"test", [], ["tags"]} end @@ -589,7 +589,7 @@ defmodule Pleroma.Web.CommonAPI.UtilsTest do assert Utils.maybe_add_attachments( {"test", [], ["tags"]}, [attachment], - false + true ) == { "test<br><a href=\"SakuraPM.png\" class='attachment'>SakuraPM.png</a>", [], |