Only kick off websubs for local users.
authorRoger Braun <roger@rogerbraun.net>
Wed, 10 May 2017 16:43:14 +0000 (18:43 +0200)
committerRoger Braun <roger@rogerbraun.net>
Wed, 10 May 2017 16:43:14 +0000 (18:43 +0200)
lib/pleroma/user.ex

index 22e77c3df092ad3e9c455abe0a8ee0fcaaad4bb0..7d065ae90161c378d6de30a2b0d49066de4a516c 100644 (file)
@@ -104,7 +104,7 @@ defmodule Pleroma.User do
       {:error,
        "Could not follow user: #{followed.nickname} is already on your list."}
     else
-      if !followed.local do
+      if !followed.local && follower.local do
         Websub.subscribe(follower, followed)
       end