]> source.dussan.org Git - nextcloud-server.git/commitdiff
Disable default activity email for incoming shares 5946/head
authorMorris Jobke <hey@morrisjobke.de>
Mon, 31 Jul 2017 06:19:54 +0000 (08:19 +0200)
committerMorris Jobke <hey@morrisjobke.de>
Wed, 2 Aug 2017 18:57:12 +0000 (20:57 +0200)
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
apps/files_sharing/lib/Activity/Settings/RemoteShare.php
apps/files_sharing/lib/Activity/Settings/Shared.php
lib/private/Share20/Manager.php

index ef506999fc4fb750b81c0ad6714e2c53032b86d3..2a5cdcd995f14a709f2f263990c6342555af9960 100644 (file)
@@ -92,7 +92,7 @@ class RemoteShare implements ISetting {
         * @since 11.0.0
         */
        public function isDefaultEnabledMail() {
-               return true;
+               return false;
        }
 }
 
index 847469d25fd2a2dd080e130c72761f02c7d784d0..97318dc79b3b1601db5cf04b53ce230dd2eef4a1 100644 (file)
@@ -92,7 +92,7 @@ class Shared implements ISetting {
         * @since 11.0.0
         */
        public function isDefaultEnabledMail() {
-               return true;
+               return false;
        }
 }
 
index b31f60ce25f94f69220ce76c13c86958a1ce603e..627ab000b885ba739cf532c3a9ed8fa5d216d89f 100644 (file)
@@ -31,7 +31,6 @@ use OC\Cache\CappedMemoryCache;
 use OC\Files\Mount\MoveableMount;
 use OC\HintException;
 use OC\Share20\Exception\ProviderException;
-use OCP\Defaults;
 use OCP\Files\File;
 use OCP\Files\Folder;
 use OCP\Files\IRootFolder;
@@ -42,6 +41,7 @@ use OCP\IGroupManager;
 use OCP\IL10N;
 use OCP\ILogger;
 use OCP\IURLGenerator;
+use OCP\IUser;
 use OCP\IUserManager;
 use OCP\Mail\IMailer;
 use OCP\Security\IHasher;