From 14bf6e1d76f79d534c19ec260ba6d4c68639ea56 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Sun, 20 Sep 2026 01:05:12 -0600 Subject: [PATCH] Lint --- app/Services/HashtagRelatedService.php | 1 + app/Services/TrendingHashtagService.php | 2 ++ 2 files changed, 3 insertions(+) diff --git a/app/Services/HashtagRelatedService.php b/app/Services/HashtagRelatedService.php index 849d1950b..8643ada68 100644 --- a/app/Services/HashtagRelatedService.php +++ b/app/Services/HashtagRelatedService.php @@ -21,6 +21,7 @@ class HashtagRelatedService public static function fetchRelatedTags($tag) { $res = StatusHashtag::query() + // @phpstan-ignore-next-line ->select('h2.name', DB::raw('COUNT(*) as related_count')) ->join('status_hashtags as hs2', function ($join) { $join->on('status_hashtags.status_id', '=', 'hs2.status_id') diff --git a/app/Services/TrendingHashtagService.php b/app/Services/TrendingHashtagService.php index 072e0252a..e5e53e6c8 100644 --- a/app/Services/TrendingHashtagService.php +++ b/app/Services/TrendingHashtagService.php @@ -63,6 +63,7 @@ class TrendingHashtagService $skipIds = array_merge(self::getBannedHashtags(), self::getNonTrendingHashtags(), self::getNsfwHashtags()); return Cache::remember(self::CACHE_KEY, config('trending.hashtags.ttl'), function () use ($minId, $skipIds) { + // @phpstan-ignore-next-line $trending = StatusHashtag::select('hashtag_id', DB::raw('count(*) as total')) ->whereNotIn('hashtag_id', $skipIds) ->where('id', '>', $minId) @@ -83,6 +84,7 @@ class TrendingHashtagService return [ 'id' => $h->hashtag_id, + // @phpstan-ignore-next-line 'total' => $h->total, 'name' => '#'.$hashtag->name, 'hashtag' => $hashtag->name,