diff options
author | multiple creatures <dev@multiple-creature.party> | 2019-08-02 03:36:13 -0500 |
---|---|---|
committer | multiple creatures <dev@multiple-creature.party> | 2019-08-02 03:36:13 -0500 |
commit | b1d125d704ae727e97c39e147814194ac7d7b9d6 (patch) | |
tree | c87df77f081d6373a5939be2ec72b60f59a0646b /app | |
parent | e11196775fa4a960283ce21024a274bb4e5d26f6 (diff) |
unbreak the universe - `Redis.cache` -> `Redis.current`
Diffstat (limited to 'app')
-rw-r--r-- | app/helpers/filter_helper.rb | 4 | ||||
-rw-r--r-- | app/services/post_status_service.rb | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/app/helpers/filter_helper.rb b/app/helpers/filter_helper.rb index 3120f5033..1eb05ca17 100644 --- a/app/helpers/filter_helper.rb +++ b/app/helpers/filter_helper.rb @@ -43,10 +43,10 @@ module FilterHelper def filter_thread(account_id, conversation_id) return if Status.where(account_id: account_id, conversation_id: conversation_id).exists? - Redis.cache.sadd("filtered_threads:#{account_id}", conversation_id) + Redis.current.sadd("filtered_threads:#{account_id}", conversation_id) end def filtering_thread?(account_id, conversation_id) - Redis.cache.sismember("filtered_threads:#{account_id}", conversation_id) + Redis.current.sismember("filtered_threads:#{account_id}", conversation_id) end end diff --git a/app/services/post_status_service.rb b/app/services/post_status_service.rb index 7106110a8..0dd2841e5 100644 --- a/app/services/post_status_service.rb +++ b/app/services/post_status_service.rb @@ -109,7 +109,7 @@ class PostStatusService < BaseService def unfilter_thread_on_reply return if @in_reply_to.nil? - Redis.cache.srem("filtered_threads:#{@account.id}", @in_reply_to.conversation_id) + Redis.current.srem("filtered_threads:#{@account.id}", @in_reply_to.conversation_id) end def set_local_only |