Update FollowerService.php

pull/6499/head
Shlee 5 months ago committed by GitHub
parent a73bbb12e2
commit 2b50576336
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -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 [];
}
}

Loading…
Cancel
Save