]> git.mxchange.org Git - friendica.git/blobdiff - src/Model/Post/Collection.php
Funkwhale context file moved
[friendica.git] / src / Model / Post / Collection.php
index 34b5dc6dee7a2ae83b3e22075fbb0833083b5043..363761d477a08831bd517a88bf40195fb258ad5a 100644 (file)
@@ -25,6 +25,7 @@ use Friendica\Database\DBA;
 use BadMethodCallException;
 use Friendica\Database\Database;
 use Friendica\DI;
+use Friendica\Model\Item;
 use Friendica\Protocol\ActivityPub;
 
 class Collection
@@ -81,6 +82,6 @@ class Collection
         */
        public static function selectToArrayForContact(int $cid, int $type = self::FEATURED, array $fields = []) 
        {
-               return DBA::selectToArray('collection-view', $fields, ['cid' => $cid, 'type' => $type]);
+               return DBA::selectToArray('collection-view', $fields, ['cid' => $cid, 'private' => [Item::PUBLIC, Item::UNLISTED], 'deleted' => false, 'type' => $type]);
        }
 }