diff options
author | Joas Schilling <coding@schilljs.com> | 2021-09-15 18:27:01 +0300 |
---|---|---|
committer | backportbot[bot] <backportbot[bot]@users.noreply.github.com> | 2021-09-27 09:19:09 +0300 |
commit | fbc9133861361bab1a21943d0f631f309841c546 (patch) | |
tree | a782cd4214120b84ce4eb62f71eb5b77d8e9fa6a /apps/files | |
parent | 53a18945d4485fe69d36647a185a82c0a236643d (diff) |
Don't allow to change activity settings that don't work
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'apps/files')
-rw-r--r-- | apps/files/lib/Activity/Settings/FileFavoriteChanged.php | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/apps/files/lib/Activity/Settings/FileFavoriteChanged.php b/apps/files/lib/Activity/Settings/FileFavoriteChanged.php index a69ecd7bb64..829f3e0d9d0 100644 --- a/apps/files/lib/Activity/Settings/FileFavoriteChanged.php +++ b/apps/files/lib/Activity/Settings/FileFavoriteChanged.php @@ -71,7 +71,11 @@ class FileFavoriteChanged extends FileActivitySettings { * @since 11.0.0 */ public function canChangeMail() { - return true; + return false; + } + + public function canChangeNotification() { + return false; } /** @@ -83,6 +87,6 @@ class FileFavoriteChanged extends FileActivitySettings { } public function isDefaultEnabledNotification() { - return true; + return false; } } |