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
945b4b55
Commit
945b4b55
authored
May 02, 2017
by
lain
Browse files
Federate likes.
parent
93de6039
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/pleroma/web/activity_pub/activity_pub.ex
View file @
945b4b55
...
...
@@ -72,6 +72,10 @@ def like(%User{ap_id: ap_id} = user, %Object{data: %{ "id" => id}} = object) do
update_object_in_activities
(
object
)
if
user
.
local
do
Pleroma
.
Web
.
Federator
.
enqueue
(
:publish
,
activity
)
end
{
:ok
,
activity
,
object
}
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