Browse Source

Merge branch 'fix/error-log-double-quotes' into 'develop'

Fix double quotes in error logs

See merge request pleroma/pleroma!1656
tags/v1.1.4
Haelwenn 4 years ago
parent
commit
51609217c2
2 changed files with 3 additions and 3 deletions
  1. +2
    -2
      lib/pleroma/web/activity_pub/transmogrifier.ex
  2. +1
    -1
      test/web/activity_pub/transmogrifier_test.exs

+ 2
- 2
lib/pleroma/web/activity_pub/transmogrifier.ex View File

@@ -185,12 +185,12 @@ defmodule Pleroma.Web.ActivityPub.Transmogrifier do
|> Map.put("context", replied_object.data["context"] || object["conversation"])
else
e ->
Logger.error("Couldn't fetch \"#{inspect(in_reply_to_id)}\", error: #{inspect(e)}")
Logger.error("Couldn't fetch #{inspect(in_reply_to_id)}, error: #{inspect(e)}")
object
end

e ->
Logger.error("Couldn't fetch \"#{inspect(in_reply_to_id)}\", error: #{inspect(e)}")
Logger.error("Couldn't fetch #{inspect(in_reply_to_id)}, error: #{inspect(e)}")
object
end
else


+ 1
- 1
test/web/activity_pub/transmogrifier_test.exs View File

@@ -102,7 +102,7 @@ defmodule Pleroma.Web.ActivityPub.TransmogrifierTest do

assert capture_log(fn ->
{:ok, _returned_activity} = Transmogrifier.handle_incoming(data)
end) =~ "[error] Couldn't fetch \"\"https://404.site/whatever\"\", error: nil"
end) =~ "[error] Couldn't fetch \"https://404.site/whatever\", error: nil"
end

test "it works for incoming notices" do


Loading…
Cancel
Save