Revert 2 changes that broke Hashtag Following

pull/6596/head
Daniel Supernault 5 months ago
parent 120b08b758
commit 344f4dfaad
No known key found for this signature in database
GPG Key ID: 23740873EE6F76A1

@ -62,7 +62,7 @@ class HashtagFollowService
public static function isWarm($hid)
{
return Redis::zscore(self::CACHE_WARMED, $hid) !== null;
return Redis::zcount(self::CACHE_KEY.$hid, 0, -1) ?? Redis::zscore(self::CACHE_WARMED, $hid) != null;
}
public static function setWarm($hid)

Loading…
Cancel
Save