Skip to content
Snippets Groups Projects
Commit 0698c610 authored by unarist's avatar unarist Committed by Eugen Rochko
Browse files

Fix an error in ReplyDistributionWorker when replied status was deleted (#4974)

Reply distribution is proceed by Sidekiq, so replied status may be deleted before this.
parent 629fae8b
No related branches found
No related tags found
No related merge requests found
......@@ -7,9 +7,9 @@ class ActivityPub::ReplyDistributionWorker
def perform(status_id)
@status = Status.find(status_id)
@account = @status.thread.account
@account = @status.thread&.account
return if skip_distribution?
return if @account.nil? || skip_distribution?
ActivityPub::DeliveryWorker.push_bulk(inboxes) do |inbox_url|
[signed_payload, @status.account_id, inbox_url]
......
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