diff options
author | Robin Appelman <robin@icewind.nl> | 2020-07-23 16:39:27 +0200 |
---|---|---|
committer | Robin Appelman <robin@icewind.nl> | 2020-07-24 13:03:35 +0200 |
commit | c8427781b4524b3eb9bf792227f44587aceb703a (patch) | |
tree | 50a66cd4a70b0eaf78a04edb44d0f5f9f477d466 /lib/public/Activity | |
parent | 5eb1e75e243917047cdb4b122a54fcd6a6d510af (diff) | |
download | nextcloud-server-c8427781b4524b3eb9bf792227f44587aceb703a.tar.gz nextcloud-server-c8427781b4524b3eb9bf792227f44587aceb703a.zip |
implement old settings interface
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'lib/public/Activity')
-rw-r--r-- | lib/public/Activity/ActivitySettings.php | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/lib/public/Activity/ActivitySettings.php b/lib/public/Activity/ActivitySettings.php index ad2e0918147..98b95061cd7 100644 --- a/lib/public/Activity/ActivitySettings.php +++ b/lib/public/Activity/ActivitySettings.php @@ -26,7 +26,7 @@ namespace OCP\Activity; /** * @since 20.0.0 */ -abstract class ActivitySettings { +abstract class ActivitySettings implements ISetting { /** * @return string Lowercase a-z and underscore only identifier * @since 20.0.0 @@ -78,4 +78,24 @@ abstract class ActivitySettings { public function isDefaultEnabledNotification() { return $this->isDefaultEnabledMail() && !$this->canChangeMail(); } + + /** + * Left in for backwards compatibility + * + * @return bool + * @since 20.0.0 + */ + public function canChangeStream() { + return false; + } + + /** + * Left in for backwards compatibility + * + * @return bool + * @since 20.0.0 + */ + public function isDefaultEnabledStream() { + return true; + } } |