Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2022-02-09 12:49:32 +0300
committerCôme Chilliet (Rebase PR Action) <come-nc@users.noreply.github.com>2022-02-17 16:30:10 +0300
commitc090b3fba7c6857fd5fde9e509dc93a6a7f7d072 (patch)
treed1220b6696855ba591bf7c97e8e89111438d139d /apps/files
parentef67f0118c461270bebd6c4f36caf37c8a1d335f (diff)
Don't provide favorite activity settings
Since mails and notifications are only available for actions of other users it does not make sense to allow changing this. It also prevents the common misunderstanding with "file was changed inside a favorited folder" Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'apps/files')
-rw-r--r--apps/files/lib/Activity/Settings/FavoriteAction.php12
1 files changed, 10 insertions, 2 deletions
diff --git a/apps/files/lib/Activity/Settings/FavoriteAction.php b/apps/files/lib/Activity/Settings/FavoriteAction.php
index 8c43b68ef88..3c6ceb23959 100644
--- a/apps/files/lib/Activity/Settings/FavoriteAction.php
+++ b/apps/files/lib/Activity/Settings/FavoriteAction.php
@@ -55,7 +55,7 @@ class FavoriteAction extends FileActivitySettings {
* @since 11.0.0
*/
public function canChangeStream() {
- return true;
+ return false;
}
/**
@@ -71,7 +71,7 @@ class FavoriteAction extends FileActivitySettings {
* @since 11.0.0
*/
public function canChangeMail() {
- return true;
+ return false;
}
/**
@@ -81,4 +81,12 @@ class FavoriteAction extends FileActivitySettings {
public function isDefaultEnabledMail() {
return false;
}
+
+ /**
+ * @return bool True when the option can be changed for the notification
+ * @since 20.0.0
+ */
+ public function canChangeNotification() {
+ return false;
+ }
}