mirror of
https://github.com/lunaisnotaboy/mastodon.git
synced 2024-11-02 04:54:25 +00:00
efffdd3778
* disable NewCops * update TargetRubyVersion * Fix Lint/MissingSuper for ActiveModelSerializers::Model * Fix Lint/MissingSuper for feed * Fix Lint/FloatComparison * Do not use instance variables
13 lines
225 B
Ruby
13 lines
225 B
Ruby
# frozen_string_literal: true
|
|
|
|
class HomeFeed < Feed
|
|
def initialize(account)
|
|
@account = account
|
|
super(:home, account.id)
|
|
end
|
|
|
|
def regenerating?
|
|
redis.exists?("account:#{@account.id}:regeneration")
|
|
end
|
|
end
|