Transmogrifier: Keep likes as likes if the content is obviously wrong

This commit is contained in:
Lain Soykaf 2025-03-19 16:00:27 +04:00
commit f9bff8f5e5
2 changed files with 5 additions and 3 deletions

View file

@ -495,10 +495,11 @@ defmodule Pleroma.Web.ActivityPub.Transmogrifier do
defp handle_incoming_normalized(
%{
"type" => "Like",
"content" => _
"content" => content
} = data,
options
) do
)
when is_binary(content) do
data
|> Map.put("type", "EmojiReact")
|> handle_incoming_normalized(options)