]> git.mxchange.org Git - friendica.git/blobdiff - src/Model/Contact.php
The "file" variable isn't stored anymore in the item table
[friendica.git] / src / Model / Contact.php
index 973e5b5a21fcba90c1e550747d469c1204b697f3..fe9869c6f88065386a8a918b11ac88e555e5096a 100644 (file)
@@ -1064,8 +1064,8 @@ class Contact extends BaseObject
 
                $contact = ($r[0]["contact-type"] == ACCOUNT_TYPE_COMMUNITY ? 'owner-id' : 'author-id');
 
-               $condition = ["`$contact` = ? AND `verb` = ? AND " . $sql,
-                       $author_id, ACTIVITY_POST, local_user()];
+               $condition = ["`$contact` = ? AND `gravity` IN (?, ?) AND " . $sql,
+                       $author_id, GRAVITY_PARENT, GRAVITY_COMMENT, local_user()];
                $params = ['order' => ['created' => true],
                        'limit' => [$a->pager['start'], $a->pager['itemspage']]];
                $r = Item::selectForUser(local_user(), [], $condition, $params);