ActivityPub: Use is_unicode_emoji? function.
This commit is contained in:
parent
a697f0d791
commit
e5b3ad3d04
3 changed files with 1 additions and 6 deletions
|
|
@ -277,10 +277,6 @@ defmodule Pleroma.Web.ActivityPub.Utils do
|
|||
|> Repo.all()
|
||||
end
|
||||
|
||||
def is_emoji?(emoji) do
|
||||
String.length(emoji) == 1
|
||||
end
|
||||
|
||||
def make_emoji_reaction_data(user, object, emoji, activity_id) do
|
||||
make_like_data(user, object, activity_id)
|
||||
|> Map.put("type", "EmojiReaction")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue