Allow self-rt.
authorRoger Braun <rbraun@Bobble.local>
Tue, 7 Nov 2017 15:45:27 +0000 (16:45 +0100)
committerRoger Braun <rbraun@Bobble.local>
Tue, 7 Nov 2017 15:45:27 +0000 (16:45 +0100)
lib/pleroma/web/common_api/common_api.ex

index 32a8a08c71a3df50f3eee0af35bb94fa4975523f..9ae7b095a4ed08cbcc23dc2c92c49d0250fc5a50 100644 (file)
@@ -16,7 +16,6 @@ defmodule Pleroma.Web.CommonAPI 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