Add antenna timeline

This commit is contained in:
KMY 2023-08-19 17:25:55 +09:00
parent f393aa2a85
commit 5c758b344c
15 changed files with 375 additions and 14 deletions

View file

@ -61,6 +61,11 @@ class FeedInsertWorker
when :list
FeedManager.instance.push_to_list(@list, @status, update: update?)
end
return if @options[:antenna_id].blank?
antenna = Antenna.find(@options[:antenna_id])
FeedManager.instance.push_to_antenna(antenna, @status, update: update?) if antenna.present?
end
def perform_unpush
@ -70,6 +75,11 @@ class FeedInsertWorker
when :list
FeedManager.instance.unpush_from_list(@list, @status, update: true)
end
return if @options[:antenna_id].blank?
antenna = Antenna.find(@options[:antenna_id])
FeedManager.instance.unpush_from_antenna(antenna, @status, update: true) if antenna.present?
end
def perform_notify