]>
cat aescling's git repositories - mastodon.git/blob - app/workers/feed_insert_worker.rb
1 # frozen_string_literal: true
4 include Sidekiq
::Worker
6 def perform(status_id
, id
, type
= :home)
8 @status = Status
.find(status_id
)
12 @follower = Account
.find(id
)
15 @follower = @list.account
19 rescue ActiveRecord
::RecordNotFound
26 perform_push
unless feed_filtered
?
30 # Note: Lists are a variation of home, so the filtering rules
31 # of home apply to both
32 FeedManager
.instance
.filter
?(:home, @status, @follower.id
)
38 FeedManager
.instance
.push_to_home(@follower, @status)
40 FeedManager
.instance
.push_to_list(@list, @status)
This page took 0.0759 seconds and 4 git commands to generate.