projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'feature/auto-reject-follow-requests-blocked' into 'develop'
[akkoma]
/
test
/
web
/
common_api
/
common_api_test.exs
diff --git
a/test/web/common_api/common_api_test.exs
b/test/web/common_api/common_api_test.exs
index e12cc04c890d15b39422d2ec85cfff8477057c99..a5b07c4469f89d8fc2938bf7829bc2428a3b19f2 100644
(file)
--- a/
test/web/common_api/common_api_test.exs
+++ b/
test/web/common_api/common_api_test.exs
@@
-40,19
+40,19
@@
defmodule Pleroma.Web.CommonAPITest do
test "it adds emoji in the object" do
user = insert(:user)
test "it adds emoji in the object" do
user = insert(:user)
- {:ok, activity} = CommonAPI.post(user, %{"status" => ":
moominmamma
:"})
+ {:ok, activity} = CommonAPI.post(user, %{"status" => ":
firefox
:"})
- assert
activity.data["object"]["emoji"]["moominmamma
"]
+ assert
Object.normalize(activity).data["emoji"]["firefox
"]
end
test "it adds emoji when updating profiles" do
end
test "it adds emoji when updating profiles" do
- user = insert(:user, %{name: ":
karjalanpiirakka
:"})
+ user = insert(:user, %{name: ":
firefox
:"})
CommonAPI.update(user)
user = User.get_cached_by_ap_id(user.ap_id)
CommonAPI.update(user)
user = User.get_cached_by_ap_id(user.ap_id)
- [
karjalanpiirakka
] = user.info.source_data["tag"]
+ [
firefox
] = user.info.source_data["tag"]
- assert
karjalanpiirakka["name"] == ":karjalanpiirakka
:"
+ assert
firefox["name"] == ":firefox
:"
end
describe "posting" do
end
describe "posting" do