diff options
author | Joas Schilling <nickvergessen@owncloud.com> | 2016-04-11 14:57:51 +0200 |
---|---|---|
committer | Joas Schilling <nickvergessen@owncloud.com> | 2016-04-11 14:57:51 +0200 |
commit | 48c41b888c6a464f645de3e9087a39c163086d9f (patch) | |
tree | efb75ffc02b3ade1294139846d0e0aebcc52565a /apps | |
parent | c6f65a3c79d11b7040cdc90b75318ef8560c1f98 (diff) | |
download | nextcloud-server-48c41b888c6a464f645de3e9087a39c163086d9f.tar.gz nextcloud-server-48c41b888c6a464f645de3e9087a39c163086d9f.zip |
Always add activities for comments to the stream
Diffstat (limited to 'apps')
-rw-r--r-- | apps/comments/activity/extension.php | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/apps/comments/activity/extension.php b/apps/comments/activity/extension.php index 6bf7cae5882..ef800e88abc 100644 --- a/apps/comments/activity/extension.php +++ b/apps/comments/activity/extension.php @@ -80,7 +80,10 @@ class Extension implements IExtension { $l = $this->getL10N($languageCode); return array( - self::APP_NAME => (string) $l->t('<strong>Comments</strong> for files'), + self::APP_NAME => [ + 'desc' => (string) $l->t('<strong>Comments</strong> for files <em>(always listed in stream)</em>'), + 'methods' => [self::METHOD_MAIL], // self::METHOD_STREAM is forced true by the default value + ], ); } @@ -274,7 +277,11 @@ class Extension implements IExtension { */ public function filterNotificationTypes($types, $filter) { if ($filter === self::APP_NAME) { - return array_intersect($types, [self::APP_NAME]); + return [self::APP_NAME]; + } + if (in_array($filter, ['all', 'by', 'self', 'filter'])) { + $types[] = self::APP_NAME; + return $types; } return false; } |