mirror of
https://github.com/HDInnovations/UNIT3D-Community-Edition.git
synced 2026-05-08 04:00:14 -05:00
update: always notify uploader/requester on replies
But don't send two notifications, one to the top level commenter, and one to the uploader, if they happen to be the same user. Keep the logic that notifies the top level commenter of any replies within.
This commit is contained in:
@@ -175,7 +175,11 @@ class Comment extends Component
|
||||
case $this->model instanceof Playlist:
|
||||
case $this->model instanceof TorrentRequest:
|
||||
case $this->model instanceof Torrent:
|
||||
if ($this->user->id !== $this->comment->user_id) {
|
||||
if ($this->user->id !== $this->model->user_id) {
|
||||
User::find($this->model->user_id)?->notify(new NewComment($this->model, $reply));
|
||||
}
|
||||
|
||||
if ($this->user->id !== $this->comment->user_id && $this->comment->user_id !== $this->model->user_id) {
|
||||
User::find($this->comment->user_id)?->notify(new NewComment($this->model, $reply));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user