This repository has been archived on 2024-06-09. You can view files and clone it, but cannot push or open issues/pull-requests.
2017-11-18 00:16:48 +01:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
class HomeFeed < Feed
|
|
|
|
def initialize(account)
|
|
|
|
@account = account
|
2021-01-07 09:40:55 +01:00
|
|
|
super(:home, account.id)
|
2017-11-18 00:16:48 +01:00
|
|
|
end
|
|
|
|
|
2019-10-06 22:11:17 +02:00
|
|
|
def regenerating?
|
2021-01-07 09:40:55 +01:00
|
|
|
redis.exists?("account:#{@account.id}:regeneration")
|
2017-11-18 00:16:48 +01:00
|
|
|
end
|
|
|
|
end
|