}
if (!empty($this->context->conversation)) {
- $xs->element('link', array('rel' => 'ostatus:conversation',
+ $xs->element('link', array('rel' => ActivityContext::CONVERSATION,
'href' => $this->context->conversation));
}
- foreach ($this->context->attention as $attnURI) {
- $xs->element('link', array('rel' => 'ostatus:attention',
+ foreach ($this->context->attention as $attnURI=>$type) {
+ $xs->element('link', array('rel' => ActivityContext::MENTIONED,
+ ActivityContext::OBJECTTYPE => $type, // FIXME: undocumented
'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));
- } else {
- $xs->element('ostatus:forward',
- array('ref' => $this->context->forwardID));
- }
}
if (!empty($this->context->location)) {