Only kick off websubs for local users.

This commit is contained in:
Roger Braun 2017-05-10 18:43:14 +02:00
parent 118c572006
commit fca7390c69

View File

@ -104,7 +104,7 @@ def follow(%User{} = follower, %User{} = followed) do
{:error, {:error,
"Could not follow user: #{followed.nickname} is already on your list."} "Could not follow user: #{followed.nickname} is already on your list."}
else else
if !followed.local do if !followed.local && follower.local do
Websub.subscribe(follower, followed) Websub.subscribe(follower, followed)
end end