]> git.mxchange.org Git - friendica.git/commitdiff
It's possibly better to use context links that do exist
authorMichael <heluecht@pirati.ca>
Thu, 4 Oct 2018 09:46:29 +0000 (09:46 +0000)
committerMichael <heluecht@pirati.ca>
Thu, 4 Oct 2018 09:46:29 +0000 (09:46 +0000)
src/Protocol/ActivityPub/Transmitter.php

index bb983711787ac97fac0e268c38fdfb07668cb0ee..8104d46696912aa114b64820ee3c16f0a0350e5b 100644 (file)
@@ -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;
        }