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>
This commit is contained in:
nfebe 2025-06-04 12:45:12 +01:00 committed by F. E Noel Nfebe
parent 7231883ab0
commit 1f8a2307bd

View file

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