aboutsummaryrefslogtreecommitdiff
path: root/static/modules/emoji_reactions_are_retarded.ex
diff options
context:
space:
mode:
authordcc <dcc@logografos.com>2023-09-02 00:52:52 -0700
committerdcc <dcc@logografos.com>2023-09-02 00:52:52 -0700
commit3a4773c3c2bd0bbef244eb519b07208da9108e49 (patch)
tree973567a6f3abb37bfb0f785b1cad14ed55840ef5 /static/modules/emoji_reactions_are_retarded.ex
downloadanni-3a4773c3c2bd0bbef244eb519b07208da9108e49.tar.gz
anni-3a4773c3c2bd0bbef244eb519b07208da9108e49.tar.bz2
anni-3a4773c3c2bd0bbef244eb519b07208da9108e49.zip
First
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