forked from AkkomaGang/akkoma
EmojiReactValidator: apply lanodan's suggestions
These changes make the encoding for the fully-qualified heart emoji very visible in editors.
This commit is contained in:
parent
11f9f2ef27
commit
8c78fef56f
1 changed files with 2 additions and 2 deletions
|
@ -55,12 +55,12 @@ test "it works for incoming unqualified emoji reactions" do
|
||||||
assert data["id"] == "http://mastodon.example.org/users/admin#reactions/2"
|
assert data["id"] == "http://mastodon.example.org/users/admin#reactions/2"
|
||||||
assert data["object"] == activity.data["object"]
|
assert data["object"] == activity.data["object"]
|
||||||
# heart emoji with added emoji variation sequence
|
# heart emoji with added emoji variation sequence
|
||||||
assert data["content"] == "❤️"
|
assert data["content"] == "❤\uFE0F"
|
||||||
|
|
||||||
object = Object.get_by_ap_id(data["object"])
|
object = Object.get_by_ap_id(data["object"])
|
||||||
|
|
||||||
assert object.data["reaction_count"] == 1
|
assert object.data["reaction_count"] == 1
|
||||||
assert match?([["❤️", _]], object.data["reactions"])
|
assert match?([["❤\uFE0F", _]], object.data["reactions"])
|
||||||
end
|
end
|
||||||
|
|
||||||
test "it reject invalid emoji reactions" do
|
test "it reject invalid emoji reactions" do
|
||||||
|
|
Loading…
Reference in a new issue