]> git.mxchange.org Git - friendica.git/blobdiff - src/Protocol/Feed.php
Merge pull request #10551 from annando/profiler
[friendica.git] / src / Protocol / Feed.php
index c155e9e3d250b326074ccac8236a08d1b97fe0cc..a1b77f8bd5e4628e9c05f8f0039f87446b44d77f 100644 (file)
@@ -878,8 +878,8 @@ class Feed
                        Protocol::OSTATUS, Protocol::DFRN, Protocol::DIASPORA];
 
                if ($filter === 'comments') {
-                       $condition[0] .= " AND `object-type` = ? ";
-                       $condition[] = Activity\ObjectType::COMMENT;
+                       $condition[0] .= " AND `gravity` = ? ";
+                       $condition[] = GRAVITY_COMMENT;
                }
 
                if ($owner['account-type'] != User::ACCOUNT_TYPE_COMMUNITY) {