fix compilation warnings
authorFloatingGhost <hannah@coffee-and-dreams.uk>
Sun, 4 Sep 2022 23:39:32 +0000 (00:39 +0100)
committerFloatingGhost <hannah@coffee-and-dreams.uk>
Sun, 4 Sep 2022 23:39:32 +0000 (00:39 +0100)
lib/pleroma/web/activity_pub/builder.ex

index 71ccbdef59a2ddc83acd0693243b06edd5ba9513..ba756ed64ac72d310ecc06c4e63529671ccb837c 100644 (file)
@@ -80,7 +80,7 @@ defmodule Pleroma.Web.ActivityPub.Builder do
   end
 
   defp remote_custom_emoji_react(
-         %{data: %{"reactions" => existing_reactions}} = object,
+         %{data: %{"reactions" => existing_reactions}},
          data,
          emoji
        ) do
@@ -103,7 +103,7 @@ defmodule Pleroma.Web.ActivityPub.Builder do
     end
   end
 
-  defp remote_custom_emoji_react(_object, data, emoji) do
+  defp remote_custom_emoji_react(_object, _data, _emoji) do
     {:error, "Could not react"}
   end