Skip to content
Snippets Groups Projects
Commit 8b94d283 authored by Eugen Rochko's avatar Eugen Rochko
Browse files

Fix wrong person being notified after nested reblog call, fix favourites...

Fix wrong person being notified after nested reblog call, fix favourites leaking private toots in Atom feeds
parent e2c2fefc
No related branches found
No related tags found
No related merge requests found
......@@ -29,6 +29,10 @@ class Favourite < ApplicationRecord
thread
end
def hidden?
status.private_visibility?
end
before_validation do
self.status = status.reblog if status.reblog?
end
......
......@@ -14,9 +14,9 @@ class ReblogService < BaseService
Pubsubhubbub::DistributionWorker.perform_async(reblog.stream_entry.id)
if reblogged_status.local?
NotifyService.new.call(reblogged_status.account, reblog)
NotifyService.new.call(reblog.reblog.account, reblog)
else
NotificationWorker.perform_async(reblog.stream_entry.id, reblogged_status.account_id)
NotificationWorker.perform_async(reblog.stream_entry.id, reblog.reblog.account_id)
end
reblog
......
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