aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorRoger Braun <roger@rogerbraun.net>2017-05-07 20:16:07 +0200
committerRoger Braun <roger@rogerbraun.net>2017-05-07 20:16:07 +0200
commite49770ee88c335f5f2f9889aee0f8e8d48a73686 (patch)
tree8b610aed1e69f46de89dec34799ebef5ba177a39 /lib
parentdb08498a9ff9166afc5cf4df1afe55e96a74b4a3 (diff)
downloadpleroma-e49770ee88c335f5f2f9889aee0f8e8d48a73686.tar.gz
Add some debugging info.
Diffstat (limited to 'lib')
-rw-r--r--lib/pleroma/web/activity_pub/activity_pub.ex2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/pleroma/web/activity_pub/activity_pub.ex b/lib/pleroma/web/activity_pub/activity_pub.ex
index 45a2fbfc3..a5d8af995 100644
--- 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