Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Pleroma
pleroma
Commits
fca7390c
Commit
fca7390c
authored
May 10, 2017
by
lain
Browse files
Only kick off websubs for local users.
parent
118c5720
Changes
1
Show whitespace changes
Inline
Side-by-side
lib/pleroma/user.ex
View file @
fca7390c
...
@@ -104,7 +104,7 @@ def follow(%User{} = follower, %User{} = followed) do
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment