projects
/
akkoma
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
db08498
)
Add some debugging info.
author
Roger Braun
<roger@rogerbraun.net>
Sun, 7 May 2017 18:16:07 +0000
(20:16 +0200)
committer
Roger Braun
<roger@rogerbraun.net>
Sun, 7 May 2017 18:16:07 +0000
(20:16 +0200)
lib/pleroma/web/activity_pub/activity_pub.ex
patch
|
blob
|
history
diff --git
a/lib/pleroma/web/activity_pub/activity_pub.ex
b/lib/pleroma/web/activity_pub/activity_pub.ex
index 45a2fbfc351e41b6052518f7edc3e2ee40dcaf16..a5d8af995fdb12ec7181630a990e49c3e4f6d5db 100644
(file)
--- a/
lib/pleroma/web/activity_pub/activity_pub.ex
+++ b/
lib/pleroma/web/activity_pub/activity_pub.ex
@@
-2,6
+2,7
@@
defmodule Pleroma.Web.ActivityPub.ActivityPub do
alias Pleroma.{Activity, Repo, Object, Upload, User, Web}
alias Ecto.{Changeset, UUID}
import Ecto.Query
+ require Logger
def insert(map, local \\ true) when is_map(map) do
map = map
@@
-9,6
+10,7
@@
defmodule Pleroma.Web.ActivityPub.ActivityPub do
|> Map.put_new_lazy("published", &make_date/0)
with %Activity{} = activity <- Activity.get_by_ap_id(map["id"]) do
+ Logger.debug(fn -> "Already have activity, #{activity.id}, not inserting." end)
{:ok, activity}
else _e ->
map = if is_map(map["object"]) do