the browser-facing portion of osu!
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Exclude restricted user scores from score listing

nanaya 723fde04 a0c02ab0

+5
+5
app/Models/Solo/Score.php
··· 169 169 return $query->whereHas('beatmap.beatmapset'); 170 170 } 171 171 172 + /** 173 + * This should only be sorted by primary key(s) 174 + */ 172 175 public function scopeForListing(Builder $query): Builder 173 176 { 174 177 return $query->where('ranked', true) 178 + ->whereHas('user', fn ($q) => $q->default()) 179 + ->from(\DB::raw("{$this->getTable()} FORCE INDEX (PRIMARY)")) 175 180 ->leftJoinRelation('processHistory') 176 181 ->select([$query->qualifyColumn('*'), 'processed_version']); 177 182 }