mirror of
https://github.com/HDInnovations/UNIT3D-Community-Edition.git
synced 2026-02-12 06:29:52 -06:00
Fix: Keep Anonymous Requests Anonymous in Approved Fill Notification
This commit is contained in:
@@ -50,10 +50,18 @@ class NewRequestFillApprove extends Notification implements ShouldQueue
|
||||
*/
|
||||
public function toArray($notifiable)
|
||||
{
|
||||
if ($this->torrentRequest->anon == 0) {
|
||||
return [
|
||||
'title' => $this->sender.' Has Approved Your Fill Of A Requested Torrent',
|
||||
'body' => $this->sender.' has approved your fill of Requested Torrent '.$this->torrentRequest->name,
|
||||
'url' => \sprintf('/requests/%s', $this->torrentRequest->id),
|
||||
];
|
||||
}
|
||||
return [
|
||||
'title' => $this->sender.' Has Approved Your Fill Of A Requested Torrent',
|
||||
'body' => $this->sender.' has approved your fill of Requested Torrent '.$this->torrentRequest->name,
|
||||
'title' => 'An anonymous user has Approved Your Fill Of A Requested Torrent',
|
||||
'body' => 'An anonymous user has approved your fill of Requested Torrent '.$this->torrentRequest->name,
|
||||
'url' => \sprintf('/requests/%s', $this->torrentRequest->id),
|
||||
];
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user