2
0

Encapsulate redis key usage (#34840)

This commit is contained in:
David Roetzel
2025-05-28 14:34:37 +02:00
committed by GitHub
parent a73ade526a
commit b195956ecb
6 changed files with 54 additions and 4 deletions

View File

@@ -46,7 +46,7 @@ class FollowService < BaseService
private
def mark_home_feed_as_partial!
redis.set("account:#{@source_account.id}:regeneration", true, nx: true, ex: 1.day.seconds)
HomeFeed.new(@source_account).regeneration_in_progress!
end
def following_not_possible?