DistributionWorker. That isn't the heaviest service, yet, but gotta start somewheremaster
parent
42dcb0d4cb
commit
8eeec389c1
@ -1,6 +1,10 @@ |
|||||||
- content_for :content do |
- content_for :content do |
||||||
.container= yield |
.container= yield |
||||||
.footer |
.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" |
= 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