logo

pleroma

My custom branche(s) on git.pleroma.social/pleroma/pleroma git clone https://hacktivis.me/git/pleroma.git
commit: 8c78fef56faff58b3ca291c2d25957b672f84bbe
parent 11f9f2ef277937d5558a1cc0a92a60b872f17de0
Author: Haelwenn <contact+git.pleroma.social@hacktivis.me>
Date:   Mon,  4 Jul 2022 00:25:54 +0000

EmojiReactValidator: apply lanodan's suggestions

These changes make the encoding for the fully-qualified heart emoji very visible in editors.

Diffstat:

Mtest/pleroma/web/activity_pub/transmogrifier/emoji_react_handling_test.exs4++--
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 @@ -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