diff options
author | lain <lain@soykaf.club> | 2019-10-06 08:11:47 +0000 |
---|---|---|
committer | lain <lain@soykaf.club> | 2019-10-06 08:11:47 +0000 |
commit | 61097ba6ab1f40f8a885f1adc96455b3c82cfd9b (patch) | |
tree | 4ead08dab6a485b3020fb9f30663e4b4466698ae /test/web/common_api/common_api_test.exs | |
parent | 1ed8fbc4d96c1d44ab968d6aa1b0069c55e44626 (diff) | |
parent | 9e34919dcdbeedf8eb623dc86b05f63ef44d8859 (diff) | |
download | pleroma-61097ba6ab1f40f8a885f1adc96455b3c82cfd9b.tar.gz pleroma-61097ba6ab1f40f8a885f1adc96455b3c82cfd9b.zip |
Merge branch 'develop' into 'reactions'
# Conflicts:
# CHANGELOG.md
Diffstat (limited to 'test/web/common_api/common_api_test.exs')
-rw-r--r-- | test/web/common_api/common_api_test.exs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/test/web/common_api/common_api_test.exs b/test/web/common_api/common_api_test.exs index b9e785885..cc1d122d9 100644 --- a/test/web/common_api/common_api_test.exs +++ b/test/web/common_api/common_api_test.exs @@ -14,6 +14,8 @@ defmodule Pleroma.Web.CommonAPITest do import Pleroma.Factory + require Pleroma.Constants + clear_config([:instance, :safe_dm_mentions]) clear_config([:instance, :limit]) clear_config([:instance, :max_pinned_statuses]) @@ -96,11 +98,13 @@ defmodule Pleroma.Web.CommonAPITest do test "it adds emoji when updating profiles" do user = insert(:user, %{name: ":firefox:"}) - CommonAPI.update(user) + {:ok, activity} = CommonAPI.update(user) user = User.get_cached_by_ap_id(user.ap_id) [firefox] = user.info.source_data["tag"] assert firefox["name"] == ":firefox:" + + assert Pleroma.Constants.as_public() in activity.recipients end describe "posting" do |