mirror of
https://github.com/mastodon/mastodon.git
synced 2025-09-06 18:01:05 +00:00
Fix Style/GuardClause
in User#regenerate_feed!
(#35523)
This commit is contained in:
parent
916cc1365e
commit
eb73ae2f86
|
@ -540,11 +540,11 @@ class User < ApplicationRecord
|
|||
|
||||
def regenerate_feed!
|
||||
home_feed = HomeFeed.new(account)
|
||||
unless home_feed.regenerating?
|
||||
return if home_feed.regenerating?
|
||||
|
||||
home_feed.regeneration_in_progress!
|
||||
RegenerationWorker.perform_async(account_id)
|
||||
end
|
||||
end
|
||||
|
||||
def needs_feed_update?
|
||||
last_sign_in_at < ACTIVE_DURATION.ago
|
||||
|
|
Loading…
Reference in New Issue
Block a user