Skip to content
Snippets Groups Projects
Commit fca7390c authored by lain's avatar lain
Browse files

Only kick off websubs for local users.

parent 118c5720
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment