From: Michael Date: Fri, 24 Nov 2023 08:35:49 +0000 (+0000) Subject: Issue 13607: Use privacy setting for "remote self" X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=4277b0c3aa7e26d85656bbdbfd93bb4e85cbae75;p=friendica.git Issue 13607: Use privacy setting for "remote self" --- diff --git a/src/Model/Item.php b/src/Model/Item.php index c3f38ca6da..27fcfcdd9b 100644 --- a/src/Model/Item.php +++ b/src/Model/Item.php @@ -2566,11 +2566,14 @@ class Item $result = self::insert($datarray2); Logger::info('remote-self post original item', ['contact' => $contact['url'], 'result' => $result, 'item' => $datarray2]); } else { - $datarray['private'] = self::PUBLIC; $datarray['app'] = 'Feed'; $result = true; } + if ($result) { + unset($datarray['private']); + } + return (bool)$result; }