mirror of https://github.com/tootsuite/mastodon
Add `Timeline` wrapper class
parent
917a799c67
commit
048609cf0e
|
@ -0,0 +1,11 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
module Timeline
|
||||
extend Redisable
|
||||
|
||||
module_function
|
||||
|
||||
def subscribed?(timeline)
|
||||
redis.exists?("subscribed:#{timeline}")
|
||||
end
|
||||
end
|
Loading…
Reference in New Issue