]> git.mxchange.org Git - friendica.git/commitdiff
Issue 13607: Use privacy setting for "remote self"
authorMichael <heluecht@pirati.ca>
Fri, 24 Nov 2023 08:35:49 +0000 (08:35 +0000)
committerMichael <heluecht@pirati.ca>
Fri, 24 Nov 2023 08:35:49 +0000 (08:35 +0000)
src/Model/Item.php

index c3f38ca6da8a02e01056b59a42d5fe71b60c0d85..27fcfcdd9b1ffe373f239199af15dd4c0da010d3 100644 (file)
@@ -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;
        }