diff options
author | ThibG <thib@sitedethib.com> | 2020-07-01 21:51:16 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-01 21:51:16 +0200 |
commit | 665eb1affe7ba765af476e6f00096aad3af70735 (patch) | |
tree | 20fbd695cfc9bad551abead27a80fdb0e19567b9 /app/models/encrypted_message.rb | |
parent | 39a0622de70dc24275808cee9526658bd68a55ed (diff) | |
parent | f60c78ff3e42e321b457a7d63868b49bf56adfda (diff) |
Merge pull request #1369 from ThibG/glitch-soc/merge-upstream
Merge upstream changes
Diffstat (limited to 'app/models/encrypted_message.rb')
-rw-r--r-- | app/models/encrypted_message.rb | 5 |
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 |