summaryrefslogtreecommitdiffstats
path: root/apps/files/lib
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@owncloud.com>2015-05-22 12:31:36 +0200
committerJoas Schilling <nickvergessen@owncloud.com>2015-07-22 15:10:34 +0200
commit270ec3aaba75c5244721a6e301148fcff7fbd467 (patch)
treedf51e46000231aa9d41d96434654a2f59d310319 /apps/files/lib
parent8d472601447f88784f5d9476955830ef78b80421 (diff)
downloadnextcloud-server-270ec3aaba75c5244721a6e301148fcff7fbd467.tar.gz
nextcloud-server-270ec3aaba75c5244721a6e301148fcff7fbd467.zip
Make the favorite type stream only
Diffstat (limited to 'apps/files/lib')
-rw-r--r--apps/files/lib/activity.php11
1 files changed, 9 insertions, 2 deletions
diff --git a/apps/files/lib/activity.php b/apps/files/lib/activity.php
index fff49ea4ea5..09732c032ca 100644
--- a/apps/files/lib/activity.php
+++ b/apps/files/lib/activity.php
@@ -86,14 +86,21 @@ class Activity implements IExtension {
* If no additional types are to be added false is to be returned
*
* @param string $languageCode
- * @return array|false
+ * @return array|false Array "stringID of the type" => "translated string description for the setting"
+ * or Array "stringID of the type" => [
+ * 'desc' => "translated string description for the setting"
+ * 'methods' => [self::METHOD_*],
+ * ]
*/
public function getNotificationTypes($languageCode) {
$l = $this->getL10N($languageCode);
return [
self::TYPE_SHARE_CREATED => (string) $l->t('A new file or folder has been <strong>created</strong>'),
self::TYPE_SHARE_CHANGED => (string) $l->t('A file or folder has been <strong>changed</strong>'),
- self::TYPE_FAVORITES => (string) $l->t('Limit notifications about creation and changes to your <strong>favorite files</strong> <em>(Stream only)</em>'),
+ self::TYPE_FAVORITES => [
+ 'desc' => (string) $l->t('Limit notifications about creation and changes to your <strong>favorite files</strong> <em>(Stream only)</em>'),
+ 'methods' => [self::METHOD_STREAM],
+ ],
self::TYPE_SHARE_DELETED => (string) $l->t('A file or folder has been <strong>deleted</strong>'),
self::TYPE_SHARE_RESTORED => (string) $l->t('A file or folder has been <strong>restored</strong>'),
];