]> git.mxchange.org Git - friendica.git/commitdiff
Changed conversation url (used for AP)
authorMichael <heluecht@pirati.ca>
Wed, 26 Sep 2018 13:12:27 +0000 (13:12 +0000)
committerMichael <heluecht@pirati.ca>
Wed, 26 Sep 2018 13:12:27 +0000 (13:12 +0000)
src/Protocol/OStatus.php

index ece265c99b391dff3ba23c1c2f545cbebe281b58..2eb8c55390afd2bcb0e26ff30e719227a7c5edbf 100644 (file)
@@ -2004,8 +2004,7 @@ class OStatus
                }
 
                if (intval($item["parent"]) > 0) {
-                       $conversation_href = System::baseUrl()."/display/".$owner["nick"]."/".$item["parent"];
-                       $conversation_uri = $conversation_href;
+                       $conversation_href = $conversation_uri = str_replace('/object/', '/context/', $item['parent-uri']);
 
                        if (isset($parent_item)) {
                                $conversation = DBA::selectFirst('conversation', ['conversation-uri', 'conversation-href'], ['item-uri' => $parent_item]);