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>
This commit is contained in:
Joas Schilling 2022-02-09 10:49:32 +01:00 committed by Côme Chilliet
parent a353db2c31
commit 1ab0ed8134
No known key found for this signature in database
GPG key ID: A3E2F658B28C760A

View file

@ -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;
}
}