about summary refs log tree commit diff
path: root/app/models/encrypted_message.rb
diff options
context:
space:
mode:
authorStarfall <us@starfall.systems>2020-07-01 16:04:26 -0500
committerStarfall <us@starfall.systems>2020-07-01 16:04:26 -0500
commit9b8ab85007cc9b527ba8c59a3624731cd8e46ffe (patch)
tree28cf79b4c73ec6d328136ea04a63321862096e5a /app/models/encrypted_message.rb
parent6ec1f4c99e51a13ca56d639b85168dfb874daf75 (diff)
parent665eb1affe7ba765af476e6f00096aad3af70735 (diff)
Merge branch 'glitch' into main
Diffstat (limited to 'app/models/encrypted_message.rb')
-rw-r--r--app/models/encrypted_message.rb5
1 files changed, 1 insertions, 4 deletions
diff --git a/app/models/encrypted_message.rb b/app/models/encrypted_message.rb
index 5e0aba434..aa4182b4e 100644
--- a/app/models/encrypted_message.rb
+++ b/app/models/encrypted_message.rb
@@ -32,16 +32,13 @@ class EncryptedMessage < ApplicationRecord
   private
 
   def push_to_streaming_api
-    Rails.logger.info(streaming_channel)
-    Rails.logger.info(subscribed_to_timeline?)
-
     return if destroyed? || !subscribed_to_timeline?
 
     PushEncryptedMessageWorker.perform_async(id)
   end
 
   def subscribed_to_timeline?
-    Redis.current.exists("subscribed:#{streaming_channel}")
+    Redis.current.exists?("subscribed:#{streaming_channel}")
   end
 
   def streaming_channel