Template of a custom feed generator service for the Bluesky network in Ruby

option to stop updating some published feeds

Changed files
+6 -1
app
+5
app/feeds/feed.rb
··· 32 nil 33 end 34 35 # if the feed matches posts using keywords/regexps, highlight these keywords in the passed text 36 def colored_text(text) 37 text
··· 32 nil 33 end 34 35 + # (optional) says if posts should be added to the feed from the firehose 36 + def is_updating? 37 + true 38 + end 39 + 40 # if the feed matches posts using keywords/regexps, highlight these keywords in the passed text 41 def colored_text(text) 42 text
+1 -1
app/firehose_stream.rb
··· 20 @save_posts = (@env == :development) ? :all : :matching 21 @replay_events = (@env == :development) ? false : true 22 23 - @feeds = BlueFactory.all_feeds 24 end 25 26 def start
··· 20 @save_posts = (@env == :development) ? :all : :matching 21 @replay_events = (@env == :development) ? false : true 22 23 + @feeds = BlueFactory.all_feeds.select(&:is_updating?) 24 end 25 26 def start