]> cat aescling's git repositories - mastodon.git/commitdiff
This method isn't used anymore
authorKurtis Rainbolt-Greene <kurtis@rainbolt-greene.online>
Wed, 5 Apr 2017 03:38:07 +0000 (20:38 -0700)
committerGitHub <noreply@github.com>
Wed, 5 Apr 2017 03:38:07 +0000 (20:38 -0700)
app/lib/feed_manager.rb

index 075f86c2de64098ec28f094ef9f69d5de92fdc28..6698c78a55d037e6dccaa0821f2950c8ec603494 100644 (file)
@@ -37,11 +37,6 @@ class FeedManager
     PushUpdateWorker.perform_async(timeline_type, account.id, status.id)
   end
 
-  def broadcast(timeline_id, options = {})
-    options[:queued_at] = (Time.now.to_f * 1000.0).to_i
-    ActionCable.server.broadcast("timeline:#{timeline_id}", options)
-  end
-
   def trim(type, account_id)
     return unless redis.zcard(key(type, account_id)) > FeedManager::MAX_ITEMS
     last = redis.zrevrange(key(type, account_id), FeedManager::MAX_ITEMS - 1, FeedManager::MAX_ITEMS - 1)