Allow self-rt.

This commit is contained in:
Roger Braun 2017-11-07 16:45:27 +01:00
parent 7da978f3f5
commit 722c4614ad
1 changed files with 0 additions and 1 deletions

View File

@ -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