X-Git-Url: https://git.squeep.com/?a=blobdiff_plain;ds=inline;f=lib%2Fpleroma%2Femoji.ex;h=f077fe5b44ec4567cbb9014d8eb788c1c9d5f6b0;hb=0b1c05ca1e387d4a929dce3cac7214fdaf1c2444;hp=201212779793f2cba1c5ad6899bbd4658a814613;hpb=8fb259e7395d4dd2bdac407b7eca0840ce490a99;p=akkoma
diff --git a/lib/pleroma/emoji.ex b/lib/pleroma/emoji.ex
index 201212779..f077fe5b4 100644
--- a/lib/pleroma/emoji.ex
+++ b/lib/pleroma/emoji.ex
@@ -1,5 +1,5 @@
# Pleroma: A lightweight social networking server
-# Copyright © 2017-2020 Pleroma Authors
+# Copyright © 2017-2021 Pleroma Authors
# SPDX-License-Identifier: AGPL-3.0-only
defmodule Pleroma.Emoji do
@@ -104,6 +104,11 @@ defmodule Pleroma.Emoji do
@external_resource "lib/pleroma/emoji-test.txt"
+ regional_indicators =
+ Enum.map(127_462..127_487, fn codepoint ->
+ <>
+ end)
+
emojis =
@external_resource
|> File.read!()
@@ -125,6 +130,8 @@ defmodule Pleroma.Emoji do
end)
|> Enum.uniq()
+ emojis = emojis ++ regional_indicators
+
for emoji <- emojis do
def is_unicode_emoji?(unquote(emoji)), do: true
end