1
0
Fork 0
forked from mirror/pixelfed

Update migration

This commit is contained in:
Daniel Supernault 2022-12-27 03:57:13 -07:00
parent 2a304d18c7
commit 9dd58bbbc3
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

@ -19,6 +19,8 @@ return new class extends Migration
foreach($hashtags as $hashtag) {
$count = DB::table('status_hashtags')->whereHashtagId($hashtag->id)->count();
$hashtag->cached_count = $count;
$hashtag->can_trend = true;
$hashtag->can_search = true;
$hashtag->save();
}
});