summaryrefslogtreecommitdiffstats
path: root/apps/comments
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2016-08-17 13:30:32 +0200
committerJoas Schilling <coding@schilljs.com>2016-08-17 13:30:32 +0200
commitaf46b64ef2f14ac3ce5a21b7d195d701e57f6b02 (patch)
tree2af2e1f5a33cb7717d57c32b411e5988724297a7 /apps/comments
parente32d6d80a17ecd7367f40c0b31a2ff90c09dd794 (diff)
downloadnextcloud-server-af46b64ef2f14ac3ce5a21b7d195d701e57f6b02.tar.gz
nextcloud-server-af46b64ef2f14ac3ce5a21b7d195d701e57f6b02.zip
Revert "Always add activities for comments to the stream"
This reverts commit 48c41b888c6a464f645de3e9087a39c163086d9f
Diffstat (limited to 'apps/comments')
-rw-r--r--apps/comments/lib/Activity/Extension.php10
1 files changed, 3 insertions, 7 deletions
diff --git a/apps/comments/lib/Activity/Extension.php b/apps/comments/lib/Activity/Extension.php
index 6e5ac894c0f..0a7503c1915 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('<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
+ 'desc' => (string) $l->t('<strong>Comments</strong> 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;
}