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>
pull/31087/head
Joas Schilling 2022-02-09 10:49:32 +07:00 committed by backportbot[bot]
parent 6990a658f7
commit 297f12e7a1
1 changed files with 10 additions and 2 deletions

@ -56,7 +56,7 @@ class FavoriteAction extends FileActivitySettings {
* @since 11.0.0
*/
public function canChangeStream() {
return true;
return false;
}
/**
@ -72,7 +72,7 @@ class FavoriteAction extends FileActivitySettings {
* @since 11.0.0
*/
public function canChangeMail() {
return true;
return false;
}
/**
@ -82,4 +82,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;
}
}