aboutsummaryrefslogtreecommitdiff
path: root/static/modules/emoji_reactions_are_retarded.ex
diff options
context:
space:
mode:
Diffstat (limited to 'static/modules/emoji_reactions_are_retarded.ex')
-rw-r--r--static/modules/emoji_reactions_are_retarded.ex26
1 files changed, 26 insertions, 0 deletions
diff --git a/static/modules/emoji_reactions_are_retarded.ex b/static/modules/emoji_reactions_are_retarded.ex
new file mode 100644
index 0000000..91884c3
--- /dev/null
+++ b/static/modules/emoji_reactions_are_retarded.ex
@@ -0,0 +1,26 @@
+# 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