From 05facac1a46356b9ee6b6ec669892800c9387302 Mon Sep 17 00:00:00 2001 From: Sam Therapy Date: Sat, 19 Mar 2022 18:27:44 +0100 Subject: [PATCH] ReactToLike: add missing emojis, make the log clear --- lib/pleroma/web/activity_pub/mrf/change_react_to_like.ex | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/lib/pleroma/web/activity_pub/mrf/change_react_to_like.ex b/lib/pleroma/web/activity_pub/mrf/change_react_to_like.ex index 922ebfd67..5179e623d 100644 --- a/lib/pleroma/web/activity_pub/mrf/change_react_to_like.ex +++ b/lib/pleroma/web/activity_pub/mrf/change_react_to_like.ex @@ -11,12 +11,11 @@ defmodule Pleroma.Web.ActivityPub.MRF.ChangeReactstoLikes do @impl true @spec filter(any) :: {:ok, any} def filter(%{"type" => "EmojiReact"} = object) do - Logger.warn("#{inspect(object)}") - test = object["content"] + react = object["content"] # TODO: make this pull from config - if test in ["👍", "❤️", "😆", "😮", "😢", "😩", "😭", "⭐"] do - Logger.warn("MRF.ChangeReactstoLikes: Changing #{inspect(test)} to a Favourite") + if react in ["👍", "👎", "❤️", "😆", "😮", "😢", "😩", "😭", "🔥", "⭐"] do + Logger.info("MRF.ChangeReactstoLikes: Changing #{inspect(react)} to a Like") object = object