don't send mail to the user who shared the file
This commit is contained in:
parent
65ddefc89d
commit
e7959f4fd2
|
@ -103,6 +103,9 @@ if (isset($_POST['action']) && isset($_POST['itemType']) && isset($_POST['itemSo
|
||||||
$recipientList = \OC_Group::usersInGroup($recipient);
|
$recipientList = \OC_Group::usersInGroup($recipient);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// don't send a mail to the user who shared the file
|
||||||
|
array_diff($recipientList, [\OCP\User::getUser()]);
|
||||||
|
|
||||||
// send mail to all recipients with an email address
|
// send mail to all recipients with an email address
|
||||||
foreach ($recipientList as $recipient) {
|
foreach ($recipientList as $recipient) {
|
||||||
//get correct target folder name
|
//get correct target folder name
|
||||||
|
|
Loading…
Reference in New Issue