summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorBjörn Schießle <schiessle@owncloud.com>2016-04-20 10:21:09 +0200
committerBjörn Schießle <schiessle@owncloud.com>2016-04-20 10:21:09 +0200
commit17eb11cce8bf3c65f2ba2ecd785c8d8af947b946 (patch)
tree9a1ec5740ff8bac7f30ebd39cb5d5f6b8632ad04 /apps
parenta296cbd203af89a8433f76dbc3a90872d627efda (diff)
parent48c41b888c6a464f645de3e9087a39c163086d9f (diff)
downloadnextcloud-server-17eb11cce8bf3c65f2ba2ecd785c8d8af947b946.tar.gz
nextcloud-server-17eb11cce8bf3c65f2ba2ecd785c8d8af947b946.zip
Merge pull request #23915 from owncloud/activity-505-always-stream-for-comments
Always add activities for comments to the stream
Diffstat (limited to 'apps')
-rw-r--r--apps/comments/activity/extension.php11
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;
}