projects
/
akkoma
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
b597e6e0aa62587ff5ff8582cfc042a4f1ba5c3a
[akkoma]
/
test
/
web
/
common_api
/
common_api_test.exs
1
defmodule Pleroma.Web.CommonAPI.UtilsTest do
2
use Pleroma.DataCase
3
alias Pleroma.Web.CommonAPI
4
5
import Pleroma.Factory
6
7
test "it de-duplicates tags" do
8
user = insert(:user)
9
{:ok, activity} = CommonAPI.post(user, %{"status" => "#2hu #2HU"})
10
11
assert activity.data["object"]["tag"] == ["2hu"]
12
end
13
end