parent
bc9074b9e4
commit
3ba6667654
3 changed files with 4 additions and 4 deletions
lib/pleroma
test/pleroma
|
@ -125,7 +125,7 @@ defp update_emojis(emojis) do
|
|||
|> String.split("\n")
|
||||
|> Enum.filter(fn line ->
|
||||
line != "" and not String.starts_with?(line, "#") and
|
||||
String.contains?(line, "qualified")
|
||||
String.contains?(line, "fully-qualified")
|
||||
end)
|
||||
|> Enum.map(fn line ->
|
||||
line
|
||||
|
|
|
@ -13,8 +13,8 @@ test "tells if a string is an unicode emoji" do
|
|||
|
||||
# Accept fully-qualified and unqualified emoji
|
||||
# See http://www.unicode.org/reports/tr51/
|
||||
assert Emoji.is_unicode_emoji?("❤")
|
||||
assert Emoji.is_unicode_emoji?("☂")
|
||||
refute Emoji.is_unicode_emoji?("❤")
|
||||
refute Emoji.is_unicode_emoji?("☂")
|
||||
|
||||
assert Emoji.is_unicode_emoji?("🥺")
|
||||
assert Emoji.is_unicode_emoji?("🤰")
|
||||
|
|
|
@ -114,7 +114,7 @@ test "it works for incoming unqualified emoji reactions" do
|
|||
object = Object.get_by_ap_id(data["object"])
|
||||
|
||||
assert object.data["reaction_count"] == 1
|
||||
assert match?([[emoji, _]], object.data["reactions"])
|
||||
assert match?([[^emoji, _, _]], object.data["reactions"])
|
||||
end
|
||||
|
||||
test "it reject invalid emoji reactions" do
|
||||
|
|
Loading…
Reference in a new issue