Allow self-rt.

This commit is contained in:
Roger Braun 2017-11-07 16:45:27 +01:00
parent 7da978f3f5
commit 722c4614ad

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