summaryrefslogtreecommitdiff
path: root/test/web
diff options
context:
space:
mode:
authorlain <lain@soykaf.club>2020-04-23 16:19:49 +0200
committerlain <lain@soykaf.club>2020-04-23 16:19:49 +0200
commit1e28d34592a5fae0f3403763f1ff86cc393a52b0 (patch)
tree84fb5d45dc5cca15541c2bdcee556f57165e76a1 /test/web
parentec7335535d857c6777798ed08dab357b07fb6efa (diff)
downloadpleroma-1e28d34592a5fae0f3403763f1ff86cc393a52b0.tar.gz
pleroma-1e28d34592a5fae0f3403763f1ff86cc393a52b0.zip
ChatMessage: Correctly ingest emoji tags.
Diffstat (limited to 'test/web')
-rw-r--r--test/web/activity_pub/transmogrifier/chat_message_test.exs1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/web/activity_pub/transmogrifier/chat_message_test.exs b/test/web/activity_pub/transmogrifier/chat_message_test.exs
index 4d6f24609..a63a31e6e 100644
--- a/test/web/activity_pub/transmogrifier/chat_message_test.exs
+++ b/test/web/activity_pub/transmogrifier/chat_message_test.exs
@@ -75,6 +75,7 @@ defmodule Pleroma.Web.ActivityPub.Transmogrifier.ChatMessageTest do
assert object
assert object.data["content"] == "You expected a cute girl? Too bad. alert(&#39;XSS&#39;)"
+ assert match?(%{"firefox" => _}, object.data["emoji"])
refute Chat.get(author.id, recipient.ap_id)
assert Chat.get(recipient.id, author.ap_id)