fix: ticket notification shouldSend logic

Regression from #4274.
This commit is contained in:
Roardom
2025-12-02 06:32:39 +00:00
parent 200b2408e8
commit d10df2a8c2
2 changed files with 1 additions and 9 deletions

View File

@@ -87,9 +87,7 @@ class NewComment extends Notification
// the expression will return false.
return ! \in_array($this->comment->user->group_id, $notifiable->notification?->json_request_groups ?? [], true);
case Ticket::class:
return ! ($this->model->staff_id === $this->comment->id && $this->model->staff_id !== null)
;
return $notifiable->id !== $this->comment->user_id;
case Playlist::class:
case Article::class:
break;

View File

@@ -582,12 +582,6 @@ parameters:
count: 1
path: app/Models/User.php
-
message: '#^Strict comparison using \!\=\= between int and null will always evaluate to true\.$#'
identifier: notIdentical.alwaysTrue
count: 1
path: app/Notifications/NewComment.php
-
message: '#^Cannot access offset ''validator'' on Illuminate\\Contracts\\Foundation\\Application\.$#'
identifier: offsetAccess.nonOffsetAccessible