Merge branch 'main' into glitch-soc/merge-upstream

Conflicts:
- `Gemfile.lock`:
  Upstream-updated lib textually too close to glitch-soc-only dep.
  Updated like upstream.
This commit is contained in:
Claire
2022-01-28 08:58:32 +01:00
116 changed files with 241 additions and 221 deletions

View File

@@ -27,6 +27,6 @@ class ActivityPub::DistributionWorker < ActivityPub::RawDistributionWorker
end
def options
{ synchronize_followers: @status.private_visibility? }
{ 'synchronize_followers' => @status.private_visibility? }
end
end

View File

@@ -3,7 +3,7 @@
class FeedInsertWorker
include Sidekiq::Worker
def perform(status_id, id, type = :home, options = {})
def perform(status_id, id, type = 'home', options = {})
@type = type.to_sym
@status = Status.find(status_id)
@options = options.symbolize_keys

View File

@@ -29,7 +29,7 @@ class Scheduler::UserCleanupScheduler
def clean_discarded_statuses!
Status.discarded.where('deleted_at <= ?', 30.days.ago).find_in_batches do |statuses|
RemovalWorker.push_bulk(statuses) do |status|
[status.id, { immediate: true }]
[status.id, { 'immediate' => true }]
end
end
end