commit: e49770ee88c335f5f2f9889aee0f8e8d48a73686
parent: db08498a9ff9166afc5cf4df1afe55e96a74b4a3
Author: Roger Braun <roger@rogerbraun.net>
Date: Sun, 7 May 2017 20:16:07 +0200
Add some debugging info.
Diffstat:
1 file 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
@@ -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