Remove remote DistributionWorkers on new status, repost

• Remove:
- remote DistributionWorkers on new status, repost
This commit is contained in:
mgabdev 2020-05-27 16:57:44 -04:00
parent 3bc4445747
commit da49e93656
2 changed files with 4 additions and 4 deletions

View File

@ -95,8 +95,8 @@ class PostStatusService < BaseService
def postprocess_status!
LinkCrawlWorker.perform_async(@status.id) unless @status.spoiler_text?
DistributionWorker.perform_async(@status.id)
Pubsubhubbub::DistributionWorker.perform_async(@status.stream_entry.id)
ActivityPub::DistributionWorker.perform_async(@status.id)
# Pubsubhubbub::DistributionWorker.perform_async(@status.stream_entry.id)
# ActivityPub::DistributionWorker.perform_async(@status.id)
PollExpirationNotifyWorker.perform_at(@status.poll.expires_at, @status.poll.id) if @status.poll
end

View File

@ -24,8 +24,8 @@ class ReblogService < BaseService
reblog = account.statuses.create!(reblog: reblogged_status, text: text, visibility: visibility)
DistributionWorker.perform_async(reblog.id)
Pubsubhubbub::DistributionWorker.perform_async(reblog.stream_entry.id)
ActivityPub::DistributionWorker.perform_async(reblog.id)
# Pubsubhubbub::DistributionWorker.perform_async(reblog.stream_entry.id)
# ActivityPub::DistributionWorker.perform_async(reblog.id)
create_notification(reblog)
bump_potential_friendship(account, reblog)