2017-11-17 18:16:48 -05:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
class HomeFeed < Feed
|
|
|
|
def initialize(account)
|
|
|
|
@account = account
|
2021-01-07 03:40:55 -05:00
|
|
|
super(:home, account.id)
|
2017-11-17 18:16:48 -05:00
|
|
|
end
|
|
|
|
|
2019-10-06 16:11:17 -04:00
|
|
|
def regenerating?
|
2021-01-07 03:40:55 -05:00
|
|
|
redis.exists?("account:#{@account.id}:regeneration")
|
2017-11-17 18:16:48 -05:00
|
|
|
end
|
|
|
|
end
|