Browse Source

Merge pull request #17501 from nextcloud/bugfix/fad-48/list-share-downloads-under-sharing

List share download activity under sharing
Roeland Jago Douma 4 years ago
parent
commit
7536caaff8
1 changed files with 6 additions and 2 deletions
  1. 6 2
      apps/files_sharing/lib/Activity/Filter.php

+ 6 - 2
apps/files_sharing/lib/Activity/Filter.php

@@ -83,7 +83,8 @@ class Filter implements IFilter {
 	public function filterTypes(array $types) {
 		return array_intersect([
 			self::TYPE_SHARED,
-			self::TYPE_REMOTE_SHARE
+			self::TYPE_REMOTE_SHARE,
+			'file_downloaded',
 		], $types);
 	}
 
@@ -92,6 +93,9 @@ class Filter implements IFilter {
 	 * @since 11.0.0
 	 */
 	public function allowedApps() {
-		return ['files_sharing'];
+		return [
+			'files_sharing',
+			'files_downloadactivity',
+		];
 	}
 }