mirror of
https://akkoma.dev/AkkomaGang/akkoma.git
synced 2024-11-10 10:09:02 +00:00
Add some debugging info.
This commit is contained in:
parent
db08498a9f
commit
e49770ee88
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue