summaryrefslogtreecommitdiffstats
path: root/core/ajax
diff options
context:
space:
mode:
authorBjoern Schiessle <schiessle@owncloud.com>2013-08-30 16:52:06 +0200
committerBjoern Schiessle <schiessle@owncloud.com>2013-08-30 16:52:06 +0200
commite7959f4fd23ff3354db7b876db2c3e595044bc4c (patch)
tree19a63c6cea61915cf74f42d39efa00fc3e57f2cb /core/ajax
parent65ddefc89d6730f3c32727bddae2895232c66a62 (diff)
downloadnextcloud-server-e7959f4fd23ff3354db7b876db2c3e595044bc4c.tar.gz
nextcloud-server-e7959f4fd23ff3354db7b876db2c3e595044bc4c.zip
don't send mail to the user who shared the file
Diffstat (limited to 'core/ajax')
-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