summaryrefslogtreecommitdiff
path: root/test/web/common_api/common_api_test.exs
diff options
context:
space:
mode:
authorlain <lain@soykaf.club>2018-05-26 16:00:59 +0200
committerlain <lain@soykaf.club>2018-05-26 16:00:59 +0200
commit4b3ec5351466f8615b32e62cc4e6215f8a80b105 (patch)
treee46842eac5d8255858a113f71bdf42bfd75e4436 /test/web/common_api/common_api_test.exs
parent4fd9df100f61dfe4731934eca86500472d866f60 (diff)
parent6138b297836f459e4fe5d21dfed30ddd9397b6d4 (diff)
downloadpleroma-4b3ec5351466f8615b32e62cc4e6215f8a80b105.tar.gz
pleroma-4b3ec5351466f8615b32e62cc4e6215f8a80b105.zip
Merge branch 'develop' into csaurus/pleroma-feature/mstdn-direct-api
Diffstat (limited to 'test/web/common_api/common_api_test.exs')
-rw-r--r--test/web/common_api/common_api_test.exs13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/web/common_api/common_api_test.exs b/test/web/common_api/common_api_test.exs
new file mode 100644
index 000000000..a5da271b3
--- /dev/null
+++ b/test/web/common_api/common_api_test.exs
@@ -0,0 +1,13 @@
+defmodule Pleroma.Web.CommonAPI.Test do
+ use Pleroma.DataCase
+ alias Pleroma.Web.CommonAPI
+
+ import Pleroma.Factory
+
+ test "it de-duplicates tags" do
+ user = insert(:user)
+ {:ok, activity} = CommonAPI.post(user, %{"status" => "#2hu #2HU"})
+
+ assert activity.data["object"]["tag"] == ["2hu"]
+ end
+end