From 8c78fef56faff58b3ca291c2d25957b672f84bbe Mon Sep 17 00:00:00 2001 From: Haelwenn Date: Mon, 4 Jul 2022 00:25:54 +0000 Subject: [PATCH] EmojiReactValidator: apply lanodan's suggestions These changes make the encoding for the fully-qualified heart emoji very visible in editors. --- .../activity_pub/transmogrifier/emoji_react_handling_test.exs | 4 ++-- 1 file 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