]> git.mxchange.org Git - friendica.git/blobdiff - mod/item.php
Updated messages.po
[friendica.git] / mod / item.php
index e15ca639c4032a5ba4784a16e9bf165badfcbe6e..70c5c9a8b61f338d1d1d43fd75bfe2ac44b09a1e 100644 (file)
@@ -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);
@@ -266,6 +270,7 @@ function item_process(array $post, array $request, bool $preview, string $return
                $post['uri-id']         = -1;
                $post['author-network'] = Protocol::DFRN;
                $post['author-updated'] = '';
+               $post['author-alias']   = '';
                $post['author-gsid']    = 0;
                $post['author-uri-id']  = ItemURI::getIdByURI($post['author-link']);
                $post['owner-updated']  = '';