Commit 722c4614 authored by Roger Braun's avatar Roger Braun
Browse files

Allow self-rt.

parent 7da978f3
Pipeline #42 passed with stage
in 1 minute and 49 seconds
......@@ -16,7 +16,6 @@ def delete(activity_id, user) do
def repeat(id_or_ap_id, user) do
with %Activity{} = activity <- get_by_id_or_ap_id(id_or_ap_id),
false <- activity.data["actor"] == user.ap_id,
object <- Object.get_by_ap_id(activity.data["object"]["id"]) do
ActivityPub.announce(user, object)
else
......
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