From: Michael Date: Thu, 4 Oct 2018 09:46:29 +0000 (+0000) Subject: It's possibly better to use context links that do exist X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=9171b2a0f3f4ddf5e03e1f2bffdecbb4607f7ba0;p=friendica.git It's possibly better to use context links that do exist --- diff --git a/src/Protocol/ActivityPub/Transmitter.php b/src/Protocol/ActivityPub/Transmitter.php index bb98371178..8104d46696 100644 --- a/src/Protocol/ActivityPub/Transmitter.php +++ b/src/Protocol/ActivityPub/Transmitter.php @@ -548,6 +548,8 @@ class Transmitter } else { return $data; } + + /// @todo Create "conversation" entry } /** @@ -669,7 +671,7 @@ class Transmitter } elseif (DBA::isResult($conversation) && !empty($conversation['conversation-uri'])) { $context_uri = $conversation['conversation-uri']; } else { - $context_uri = str_replace('/objects/', '/context/', $item['parent-uri']); + $context_uri = $item['parent-uri'] . '#context'; } return $context_uri; }