Default follows for new users (#4871)
When a new user confirms their e-mail, bootstrap their home timeline by automatically following a set of accounts. By default, all local admin accounts (that are unlocked). Can be customized by new admin setting (comma-separated usernames, local and unlocked only)
This commit is contained in:
parent
f2cbfb2eb3
commit
7d7844a47f
11 changed files with 118 additions and 2 deletions
9
app/workers/bootstrap_timeline_worker.rb
Normal file
9
app/workers/bootstrap_timeline_worker.rb
Normal file
|
@ -0,0 +1,9 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
class BootstrapTimelineWorker
|
||||
include Sidekiq::Worker
|
||||
|
||||
def perform(account_id)
|
||||
BootstrapTimelineService.new.call(Account.find(account_id))
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue