remove io.inspects

This commit is contained in:
FloatingGhost 2022-06-08 12:58:12 +01:00
parent c5467d04e4
commit e724da2a42
5 changed files with 0 additions and 7 deletions

View file

@ -135,7 +135,6 @@ def bulk_post(data, :activities) do
:skipped :skipped
{:ok, %{body: body}} -> {:ok, %{body: body}} ->
IO.inspect(body)
:skipped :skipped
end end
end end
@ -166,7 +165,6 @@ def bulk_post(data, :users) do
:skipped :skipped
{:ok, %{body: body}} -> {:ok, %{body: body}} ->
IO.inspect(body)
:skipped :skipped
end end
end end
@ -196,7 +194,6 @@ def bulk_post(data, :hashtags) when is_list(data) do
:skipped :skipped
{:ok, %{body: body}} -> {:ok, %{body: body}} ->
IO.inspect(body)
:skipped :skipped
end end
end end

View file

@ -144,7 +144,6 @@ def validate(%{"type" => type} = object, meta)
def validate(%{"type" => type} = object, meta) def validate(%{"type" => type} = object, meta)
when type in ~w[Accept Reject Follow Update Like EmojiReact Announce when type in ~w[Accept Reject Follow Update Like EmojiReact Announce
ChatMessage Answer] do ChatMessage Answer] do
IO.inspect(object)
validator = validator =
case type do case type do
"Accept" -> AcceptRejectValidator "Accept" -> AcceptRejectValidator

View file

@ -73,7 +73,6 @@ defp fix_replies(%{"replies" => %{"first" => first}} = data) do
else else
{:error, e} -> {:error, e} ->
Logger.error("Could not fetch replies for #{first}") Logger.error("Could not fetch replies for #{first}")
IO.inspect(e)
Map.put(data, "replies", []) Map.put(data, "replies", [])
end end
end end

View file

@ -424,7 +424,6 @@ def handle_incoming(
} = data, } = data,
options options
) do ) do
IO.inspect(data)
data data
|> Map.put("type", "EmojiReact") |> Map.put("type", "EmojiReact")
|> Map.put("content", reaction) |> Map.put("content", reaction)

View file

@ -347,7 +347,6 @@ def add_emoji_reaction_to_object(
%Activity{data: %{"content" => emoji, "actor" => actor}} = activity, %Activity{data: %{"content" => emoji, "actor" => actor}} = activity,
object object
) do ) do
IO.inspect(emoji)
reactions = get_cached_emoji_reactions(object) reactions = get_cached_emoji_reactions(object)
emoji = stripped_emoji_name(emoji) emoji = stripped_emoji_name(emoji)
new_reactions = new_reactions =