]> git.mxchange.org Git - friendica.git/commitdiff
Merge pull request #5384 from annando/item-uri
authorTobias Diekershoff <tobias.diekershoff@gmx.net>
Mon, 16 Jul 2018 04:45:41 +0000 (06:45 +0200)
committerGitHub <noreply@github.com>
Mon, 16 Jul 2018 04:45:41 +0000 (06:45 +0200)
Fix for missing username in uri for comments to public posts

mod/item.php

index 935b50d03050d4ab38b4a99fbe0205f5bd69e159..dbe396e901d9ccf19ca2735971bd9e90a2fc81f0 100644 (file)
@@ -577,7 +577,7 @@ function item_post(App $a) {
 
        $notify_type = ($parent ? 'comment-new' : 'wall-new');
 
-       $uri = ($message_id ? $message_id : Item::newURI($profile_uid, $guid));
+       $uri = ($message_id ? $message_id : Item::newURI($api_source ? $profile_uid : $uid, $guid));
 
        // Fallback so that we alway have a parent uri
        if (!$thr_parent_uri || !$parent) {