Serialize ActivityPub alternate link into OStatus deletes, handle it (#4730)
Requires moving Atom rendering from DistributionWorker (where `stream_entry.status` is already nil) to inline (where `stream_entry.status.destroyed?` is true) and distributing that. Unfortunately, such XML renderings can no longer be easily chained together into one payload of n items.
This commit is contained in:
parent
9958eba356
commit
4c76402ba1
7 changed files with 57 additions and 20 deletions
|
@ -22,8 +22,6 @@ class RemoveStatusService < BaseService
|
|||
|
||||
return unless @account.local?
|
||||
|
||||
@stream_entry = @stream_entry.reload
|
||||
|
||||
remove_from_remote_followers
|
||||
remove_from_remote_affected
|
||||
end
|
||||
|
@ -62,7 +60,7 @@ class RemoveStatusService < BaseService
|
|||
|
||||
def remove_from_remote_followers
|
||||
# OStatus
|
||||
Pubsubhubbub::DistributionWorker.perform_async(@stream_entry.id)
|
||||
Pubsubhubbub::RawDistributionWorker.perform_async(salmon_xml, @account.id)
|
||||
|
||||
# ActivityPub
|
||||
ActivityPub::DeliveryWorker.push_bulk(@account.followers.inboxes) do |inbox_url|
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue