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,
"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