about summary refs log tree commit diff
path: root/app/models/user.rb
diff options
context:
space:
mode:
authorClaire <claire.github-309c@sitedethib.com>2022-04-28 18:16:42 +0200
committerClaire <claire.github-309c@sitedethib.com>2022-04-28 18:16:42 +0200
commitf23f784f1811a5e7ae82faaf8868e389e9608f5d (patch)
tree77b919683a8656a361d7d62c8745233bc8b2d310 /app/models/user.rb
parent6a9d1549484a6fb02d7d01e884577a7185302046 (diff)
parent8284110c55679b7ce7b3922cb0559620b03ca88c (diff)
Merge branch 'main' into glitch-soc/merge-upstream
Diffstat (limited to 'app/models/user.rb')
-rw-r--r--app/models/user.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/models/user.rb b/app/models/user.rb
index 5c1f9504a..b38de74b8 100644
--- a/app/models/user.rb
+++ b/app/models/user.rb
@@ -52,6 +52,7 @@ class User < ApplicationRecord
 
   include Settings::Extend
   include UserRoles
+  include Redisable
 
   # The home and list feeds will be stored in Redis for this amount
   # of time, and status fan-out to followers will include only people
@@ -464,7 +465,7 @@ class User < ApplicationRecord
   end
 
   def regenerate_feed!
-    RegenerationWorker.perform_async(account_id) if Redis.current.set("account:#{account_id}:regeneration", true, nx: true, ex: 1.day.seconds)
+    RegenerationWorker.perform_async(account_id) if redis.set("account:#{account_id}:regeneration", true, nx: true, ex: 1.day.seconds)
   end
 
   def needs_feed_update?