diff --git a/apps/files/lib/activity.php b/apps/files/lib/activity.php index 7302bfb33b..007f9a1dda 100644 --- a/apps/files/lib/activity.php +++ b/apps/files/lib/activity.php @@ -333,9 +333,8 @@ class Activity implements IExtension { $parameters = $fileQueryList = []; $parameters[] = 'files'; - $fileQueryList[] = '`type` <> ?'; + $fileQueryList[] = '(`type` <> ? AND `type` <> ?)'; $parameters[] = self::TYPE_SHARE_CREATED; - $fileQueryList[] = '`type` <> ?'; $parameters[] = self::TYPE_SHARE_CHANGED; foreach ($favorites['items'] as $favorite) {