]> source.dussan.org Git - nextcloud-server.git/commitdiff
don't send mail to the user who shared the file
authorBjoern Schiessle <schiessle@owncloud.com>
Fri, 30 Aug 2013 14:52:06 +0000 (16:52 +0200)
committerBjoern Schiessle <schiessle@owncloud.com>
Fri, 30 Aug 2013 14:52:06 +0000 (16:52 +0200)
core/ajax/share.php

index 76a67f54720bd070480507a5ff5e98785d6f5fa3..0cf4b246f98cb04c5ec46e0f4fc3c5f4e60736c1 100644 (file)
@@ -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