mirror of
https://github.com/mastodon/mastodon.git
synced 2024-11-14 02:44:13 +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
|