diff options
author | ThibG <thib@sitedethib.com> | 2021-01-11 13:44:57 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-11 13:44:57 +0100 |
commit | a7a47834e50645746355e2b9a88244c1804c73cd (patch) | |
tree | 3b81b1d2a4b2c2d2e4b29948c72a7995a21fa449 /app/models/home_feed.rb | |
parent | d42e7e01dcd464f80637682d4eee6e5a7f36f26e (diff) | |
parent | 31e68bf3d35b80e794c1a44b3d60dabcf10f2a3d (diff) |
Merge pull request #1483 from ThibG/glitch-soc/merge-upstream
Merge upstream changes
Diffstat (limited to 'app/models/home_feed.rb')
-rw-r--r-- | app/models/home_feed.rb | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/app/models/home_feed.rb b/app/models/home_feed.rb index 0fe9dae46..d6ebb5fa6 100644 --- a/app/models/home_feed.rb +++ b/app/models/home_feed.rb @@ -2,12 +2,11 @@ class HomeFeed < Feed def initialize(account) - @type = :home - @id = account.id @account = account + super(:home, account.id) end def regenerating? - redis.exists?("account:#{@id}:regeneration") + redis.exists?("account:#{@account.id}:regeneration") end end |