Skip to content

Commit 7d872e2

Browse files
committed
Fix whereAvatar
1 parent ba8355c commit 7d872e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/Models/User.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -420,7 +420,7 @@ public function scopeModerators(Builder $query)
420420

421421
public function scopeWithAvatar(Builder $query)
422422
{
423-
return $query->where('github_has_identicon', false);
423+
return $query->where('github_has_identicon', false)->whereNotNull('github_id');
424424
}
425425

426426
public function scopeNotBanned(Builder $query)

0 commit comments

Comments
 (0)