Merge pull request #6449 from pixelfed/shleeable-patch-1

bugfix: Update HashtagFollowService.php iswarm logic. Always returns 0
pull/6469/head
dansup 5 months ago committed by GitHub
commit c78af1046e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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

Loading…
Cancel
Save