]> git.mxchange.org Git - friendica.git/commitdiff
Adding gravity to avoid notices
authorMichael <heluecht@pirati.ca>
Fri, 3 Sep 2021 04:05:29 +0000 (04:05 +0000)
committerMichael <heluecht@pirati.ca>
Fri, 3 Sep 2021 04:05:29 +0000 (04:05 +0000)
src/Module/Diaspora/Fetch.php

index ff4a3ac8da92333b364467d18dfe8ff3fed89b31..3f0de6166f651238eeefd413635809fca31a23d5 100644 (file)
@@ -49,7 +49,7 @@ class Fetch extends BaseModule
                // Fetch the item
                $fields = [
                        'uid', 'title', 'body', 'guid', 'contact-id', 'private', 'created', 'received', 'app', 'location', 'coord', 'network',
-                       'event-id', 'resource-id', 'author-link', 'author-avatar', 'author-name', 'plink', 'owner-link', 'uri-id'
+                       'gravity', 'event-id', 'resource-id', 'author-link', 'author-avatar', 'author-name', 'plink', 'owner-link', 'uri-id'
                ];
                $condition = ['origin' => true, 'private' => [Item::PUBLIC, Item::UNLISTED], 'guid' => $guid,
                        'gravity' => [GRAVITY_PARENT, GRAVITY_COMMENT], 'network' => [Protocol::DFRN, Protocol::DIASPORA]];