X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fitem.php;h=70c5c9a8b61f338d1d1d43fd75bfe2ac44b09a1e;hb=0dbb864d7db5179881c61edcb52d06be03971732;hp=72c2ed8c5d10679fef6b2ddeca31d5752f0b10cd;hpb=9c23a4511dc9a8031007cd2755e39746889258c2;p=friendica.git diff --git a/mod/item.php b/mod/item.php index 72c2ed8c5d..70c5c9a8b6 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']); + } + Logger::debug('post_complete'); item_post_return(DI::baseUrl(), $return_path);