diff options
author | Haelwenn <contact+git.pleroma.social@hacktivis.me> | 2022-07-04 00:25:54 +0000 |
---|---|---|
committer | Hélène <pleroma-dev@helene.moe> | 2022-07-04 00:25:54 +0000 |
commit | 8c78fef56faff58b3ca291c2d25957b672f84bbe (patch) | |
tree | bf1516e6ff7320381b80e36be8e1358a5a164af2 | |
parent | 11f9f2ef277937d5558a1cc0a92a60b872f17de0 (diff) | |
download | pleroma-8c78fef56faff58b3ca291c2d25957b672f84bbe.tar.gz |
EmojiReactValidator: apply lanodan's suggestions
These changes make the encoding for the fully-qualified heart emoji very visible in editors.
-rw-r--r-- | test/pleroma/web/activity_pub/transmogrifier/emoji_react_handling_test.exs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/pleroma/web/activity_pub/transmogrifier/emoji_react_handling_test.exs b/test/pleroma/web/activity_pub/transmogrifier/emoji_react_handling_test.exs index 5edb6d56e..41d96fa66 100644 --- a/test/pleroma/web/activity_pub/transmogrifier/emoji_react_handling_test.exs +++ b/test/pleroma/web/activity_pub/transmogrifier/emoji_react_handling_test.exs @@ -55,12 +55,12 @@ defmodule Pleroma.Web.ActivityPub.Transmogrifier.EmojiReactHandlingTest do assert data["id"] == "http://mastodon.example.org/users/admin#reactions/2" assert data["object"] == activity.data["object"] # heart emoji with added emoji variation sequence - assert data["content"] == "❤️" + assert data["content"] == "❤\uFE0F" object = Object.get_by_ap_id(data["object"]) assert object.data["reaction_count"] == 1 - assert match?([["❤️", _]], object.data["reactions"]) + assert match?([["❤\uFE0F", _]], object.data["reactions"]) end test "it reject invalid emoji reactions" do |