DistributionWorker. That isn't the heaviest service, yet, but gotta start somewheremain
parent
42dcb0d4cb
commit
8eeec389c1
@ -1,6 +1,10 @@
|
||||
- content_for :content do
|
||||
.container= yield
|
||||
.footer
|
||||
.domain= Rails.configuration.x.local_domain
|
||||
%span.domain= Rails.configuration.x.local_domain
|
||||
%span.powered-by
|
||||
\//
|
||||
powered by
|
||||
= link_to 'Mastodon', 'https://github.com/Gargron/mastodon'
|
||||
|
||||
= render template: "layouts/application"
|
||||
|
@ -0,0 +1,7 @@
|
||||
class DistributionWorker
|
||||
include Sidekiq::Worker
|
||||
|
||||
def perform(status_id)
|
||||
FanOutOnWriteService.new.(Status.find(status_id))
|
||||
end
|
||||
end
|
Loading…
Reference in new issue