unbreak the universe - `Redis.cache` -> `Redis.current`
parent
e11196775f
commit
b1d125d704
|
@ -43,10 +43,10 @@ module FilterHelper
|
||||||
|
|
||||||
def filter_thread(account_id, conversation_id)
|
def filter_thread(account_id, conversation_id)
|
||||||
return if Status.where(account_id: account_id, conversation_id: conversation_id).exists?
|
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
|
end
|
||||||
|
|
||||||
def filtering_thread?(account_id, conversation_id)
|
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
|
||||||
end
|
end
|
||||||
|
|
|
@ -109,7 +109,7 @@ class PostStatusService < BaseService
|
||||||
|
|
||||||
def unfilter_thread_on_reply
|
def unfilter_thread_on_reply
|
||||||
return if @in_reply_to.nil?
|
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
|
end
|
||||||
|
|
||||||
def set_local_only
|
def set_local_only
|
||||||
|
|
Loading…
Reference in New Issue