EmojiReactions: Rename to EmojiReacts
This commit is contained in:
parent
df0b00b32d
commit
8a79f20c21
12 changed files with 21 additions and 21 deletions
|
|
@ -308,7 +308,7 @@ defmodule Pleroma.Web.ActivityPub.Utils do
|
|||
|
||||
def make_emoji_reaction_data(user, object, emoji, activity_id) do
|
||||
make_like_data(user, object, activity_id)
|
||||
|> Map.put("type", "EmojiReaction")
|
||||
|> Map.put("type", "EmojiReact")
|
||||
|> Map.put("content", emoji)
|
||||
end
|
||||
|
||||
|
|
@ -493,7 +493,7 @@ defmodule Pleroma.Web.ActivityPub.Utils do
|
|||
def get_latest_reaction(internal_activity_id, %{ap_id: ap_id}, emoji) do
|
||||
%{data: %{"object" => object_ap_id}} = Activity.get_by_id(internal_activity_id)
|
||||
|
||||
"EmojiReaction"
|
||||
"EmojiReact"
|
||||
|> Activity.Queries.by_type()
|
||||
|> where(actor: ^ap_id)
|
||||
|> where([activity], fragment("?->>'content' = ?", activity.data, ^emoji))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue