First
[anni] / static / modules / emoji_reactions_are_retarded.ex
1 # The second I figure out how to get this out of the UI, that's gone too.
2 # What the hell is this, fucking Github?  Facebook?
3 # Fuck EmojiReaction.  Fuck it completely.
4 # ...Unless it lets you use the custom emojis (which are fun) instead of
5 # the stupid Unicode Consortium ones (which are terrible), in which case
6 # I'll get rid of this policy.
7 defmodule Pleroma.Web.ActivityPub.MRF.EmojiReactionsAreRetarded do 
8         require Logger
9         @behaviour Pleroma.Web.ActivityPub.MRF.Policy
10
11         @impl true
12         def filter(%{"type" => "EmojiReact"} = message) do
13                 Logger.info("FUCK EMOJI REACTIONS:  #{inspect(message)}")
14                 message = message
15                         |> Map.put("type", "Like")
16                         |> Map.drop(["content"])
17                 #{:reject, message}
18                 {:ok, message}
19         end
20
21         @impl true
22         def filter(object), do: {:ok, object}
23
24         @impl true
25         def describe, do: {:ok, %{}}
26 end