diff --git a/app/Services/FollowerService.php b/app/Services/FollowerService.php index 83ff00bc6..dab25e75c 100644 --- a/app/Services/FollowerService.php +++ b/app/Services/FollowerService.php @@ -259,8 +259,13 @@ class FollowerService $key = self::FOLLOWERS_INTER_KEY.$actorId.':'.$profileId; $res = Redis::zinterstore($key, [$actorKey, $profileKey]); if ($res) { - return Redis::zrange($key, 0, -1); + $ids = Redis::zrange($key, 0, -1); + Redis::expire($key, 3600); + + return $ids; } else { + Redis::expire($key, 3600); + return []; } }