Commit 6f0b9a51 authored by lain's avatar lain
Browse files

Fix Notification tests.

parent 2887f4ff
......@@ -8,7 +8,7 @@ defmodule Pleroma.Web.CommonAPI do
def delete(activity_id, user) do
with %Activity{data: %{"object" => %{"id" => object_id}}} <- Repo.get(Activity, activity_id),
%Object{} = object <- Object.normalize(object_id),
true <-["is_moderator"] || user.ap_id ==["actor"],
true <- || user.ap_id ==["actor"],
{:ok, delete} <- ActivityPub.delete(object) do
{:ok, delete}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment