- $xs->element('link', array('rel' => 'ostatus:conversation',
- 'href' => $this->context->conversation));
- }
-
- foreach ($this->context->attention as $attnURI) {
- $xs->element('link', array('rel' => 'ostatus:attention',
- 'href' => $attnURI));
- $xs->element('link', array('rel' => 'mentioned',
- 'href' => $attnURI));
- }
-
- // XXX: shoulda used ActivityVerb::SHARE
-
- if (!empty($this->context->forwardID)) {
- if (!empty($this->context->forwardUrl)) {
- $xs->element('ostatus:forward',
- array('ref' => $this->context->forwardID,
- 'href' => $this->context->forwardUrl));
+ $convattr = [];
+ $conv = Conversation::getKV('uri', $this->context->conversation);
+ if ($conv instanceof Conversation) {
+ $convattr['href'] = $conv->getUrl();
+ $convattr['local_id'] = $conv->getID();
+ $convattr['ref'] = $conv->getUri();
+ $xs->element('link', array('rel' => 'ostatus:'.ActivityContext::CONVERSATION,
+ 'href' => $convattr['href']));