Skip to content

Commit 4c60d39

Browse files
authored
Merge pull request ppy#11137 from nanaya/reportable-user-id
Fix null user id error when reporting old (imported) comments
2 parents c4750ba + afb20e4 commit 4c60d39

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/Models/Comment.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ protected function newReportableExtraParams(): array
302302
{
303303
return [
304304
'reason' => 'Spam',
305-
'user_id' => $this->user_id,
305+
'user_id' => $this->user_id ?? 0,
306306
];
307307
}
308308

0 commit comments

Comments
 (0)