diff --git a/apps/comments/lib/Activity/Extension.php b/apps/comments/lib/Activity/Extension.php
index 6e5ac894c0..0a7503c191 100644
--- a/apps/comments/lib/Activity/Extension.php
+++ b/apps/comments/lib/Activity/Extension.php
@@ -82,8 +82,8 @@ class Extension implements IExtension {
return array(
self::APP_NAME => [
- 'desc' => (string) $l->t('Comments for files (always listed in stream)'),
- 'methods' => [self::METHOD_MAIL], // self::METHOD_STREAM is forced true by the default value
+ 'desc' => (string) $l->t('Comments for files'),
+ 'methods' => [self::METHOD_MAIL, self::METHOD_STREAM],
],
);
}
@@ -278,11 +278,7 @@ class Extension implements IExtension {
*/
public function filterNotificationTypes($types, $filter) {
if ($filter === self::APP_NAME) {
- return [self::APP_NAME];
- }
- if (in_array($filter, ['all', 'by', 'self', 'filter'])) {
- $types[] = self::APP_NAME;
- return $types;
+ return array_intersect($types, [self::APP_NAME]);
}
return false;
}