summaryrefslogtreecommitdiffstats
path: root/core/ajax/share.php
diff options
context:
space:
mode:
Diffstat (limited to 'core/ajax/share.php')
-rw-r--r--core/ajax/share.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/core/ajax/share.php b/core/ajax/share.php
index 76a67f54720..0cf4b246f98 100644
--- a/core/ajax/share.php
+++ b/core/ajax/share.php
@@ -103,6 +103,9 @@ if (isset($_POST['action']) && isset($_POST['itemType']) && isset($_POST['itemSo
$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
foreach ($recipientList as $recipient) {
//get correct target folder name