Skip to content

Commit d5f01ea

Browse files
authored
Merge pull request #11967 from nanaya/discussion-deleted-beatmap
Fix error when listing event of deleted beatmapset
2 parents 84e244e + 5833248 commit d5f01ea

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

app/Models/BeatmapDiscussion.php

+1
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,7 @@ public function canBeResolved()
249249
public function canGrantKudosu()
250250
{
251251
return in_array($this->attributes['message_type'] ?? null, static::KUDOSUABLE_TYPES, true) &&
252+
$this->beatmapset !== null &&
252253
$this->user_id !== $this->beatmapset->user_id &&
253254
!$this->trashed() &&
254255
!$this->kudosu_denied;

0 commit comments

Comments
 (0)