# The second I figure out how to get this out of the UI, that's gone too. # What the hell is this, fucking Github? Facebook? # Fuck EmojiReaction. Fuck it completely. # ...Unless it lets you use the custom emojis (which are fun) instead of # the stupid Unicode Consortium ones (which are terrible), in which case # I'll get rid of this policy. defmodule Pleroma.Web.ActivityPub.MRF.EmojiReactionsAreRetarded do require Logger @behaviour Pleroma.Web.ActivityPub.MRF.Policy @impl true def filter(%{"type" => "EmojiReact"} = message) do Logger.info("FUCK EMOJI REACTIONS: #{inspect(message)}") message = message |> Map.put("type", "Like") |> Map.drop(["content"]) #{:reject, message} {:ok, message} end @impl true def filter(object), do: {:ok, object} @impl true def describe, do: {:ok, %{}} end