fix: Set public link upload email notification to opt-in

This now sets `isDefaultEnabled` to false. This makes email notifications for file uploads
to public links disabled by default (opt-in) for users.

This addresses concerns about new notifications being enabled by
default for existing users, leading to unexpected emails.

Related: https://github.com/nextcloud/server/pull/46945

Signed-off-by: nfebe <fenn25.fn@gmail.com>
pull/53322/head
nfebe 7 months ago committed by F. E Noel Nfebe
parent 7231883ab0
commit 1f8a2307bd
  1. 2
      apps/files_sharing/lib/Activity/Settings/PublicLinksUpload.php

@ -61,6 +61,6 @@ class PublicLinksUpload extends ShareActivitySettings {
* @since 11.0.0
*/
public function isDefaultEnabledMail() {
return true;
return false;
}
}

Loading…
Cancel
Save