From 1c7d7845c3a01b203a2c6e17805ee91732044e4d Mon Sep 17 00:00:00 2001 From: FloatingGhost Date: Mon, 5 Sep 2022 00:39:32 +0100 Subject: [PATCH] fix compilation warnings --- lib/pleroma/web/activity_pub/builder.ex | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/pleroma/web/activity_pub/builder.ex b/lib/pleroma/web/activity_pub/builder.ex index 71ccbdef5..ba756ed64 100644 --- a/lib/pleroma/web/activity_pub/builder.ex +++ b/lib/pleroma/web/activity_pub/builder.ex @@ -80,7 +80,7 @@ defp add_emoji_content(data, emoji, url) do end defp remote_custom_emoji_react( - %{data: %{"reactions" => existing_reactions}} = object, + %{data: %{"reactions" => existing_reactions}}, data, emoji ) do @@ -103,7 +103,7 @@ defp remote_custom_emoji_react( 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