diff options
author | Roger Braun <roger@rogerbraun.net> | 2017-05-07 20:16:07 +0200 |
---|---|---|
committer | Roger Braun <roger@rogerbraun.net> | 2017-05-07 20:16:07 +0200 |
commit | e49770ee88c335f5f2f9889aee0f8e8d48a73686 (patch) | |
tree | 8b610aed1e69f46de89dec34799ebef5ba177a39 /lib | |
parent | db08498a9ff9166afc5cf4df1afe55e96a74b4a3 (diff) | |
download | pleroma-e49770ee88c335f5f2f9889aee0f8e8d48a73686.tar.gz |
Add some debugging info.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/pleroma/web/activity_pub/activity_pub.ex | 2 |
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 |