]> git.mxchange.org Git - friendica.git/commitdiff
Merge remote-tracking branch 'upstream/develop' into loop-prevention
authorMichael <heluecht@pirati.ca>
Sat, 6 Aug 2022 17:11:04 +0000 (17:11 +0000)
committerMichael <heluecht@pirati.ca>
Sat, 6 Aug 2022 17:11:04 +0000 (17:11 +0000)
1  2 
src/Protocol/ActivityPub/Processor.php

index a8d51da43a7a3e901080ffe0e5e72287dccc064a,6f3acadfad52f32da177d6bccd5aff213f8ef6df..1f336b214d4dcc0629d437313f21682bca95406c
@@@ -226,10 -230,10 +226,10 @@@ class Processo
         */
        public static function updateItem(array $activity)
        {
-               $item = Post::selectFirst(['uri', 'uri-id', 'thr-parent', 'gravity', 'post-type'], ['uri' => $activity['id']]);
+               $item = Post::selectFirst(['uri', 'uri-id', 'thr-parent', 'gravity', 'post-type', 'private'], ['uri' => $activity['id']]);
                if (!DBA::isResult($item)) {
                        Logger::warning('No existing item, item will be created', ['uri' => $activity['id']]);
 -                      $item = self::createItem($activity);
 +                      $item = self::createItem($activity, false);
                        if (empty($item)) {
                                return;
                        }