From e49770ee88c335f5f2f9889aee0f8e8d48a73686 Mon Sep 17 00:00:00 2001 From: Roger Braun Date: Sun, 7 May 2017 20:16:07 +0200 Subject: [PATCH] Add some debugging info. --- lib/pleroma/web/activity_pub/activity_pub.ex | 2 ++ 1 file changed, 2 insertions(+) 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 -- 2.45.2