X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fitem.php;h=e85c08e023c87a4a28c3771280c825cfa73067bf;hb=a609e545b66808f8a8e6c9d2f8dab08acd968880;hp=72c2ed8c5d10679fef6b2ddeca31d5752f0b10cd;hpb=1d556b78c1453a0492f34223053b3afa03027e05;p=friendica.git diff --git a/mod/item.php b/mod/item.php index 72c2ed8c5d..e85c08e023 100644 --- a/mod/item.php +++ b/mod/item.php @@ -221,6 +221,10 @@ function item_insert(int $uid, array $request, bool $preview, string $return_pat DI::contentItem()->postProcessPost($post, $recipients); + if (($post['private'] == Item::PRIVATE) && ($post['thr-parent-id'] != $post['uri-id'])) { + DI::contentItem()->copyPermissions($post['thr-parent-id'], $post['uri-id'], $post['parent-uri-id']); + } + Logger::debug('post_complete'); item_post_return(DI::baseUrl(), $return_path);