Use pre-defined const instead of strings

This commit is contained in:
Mikael Nordfeldth 2013-10-21 18:28:04 +02:00
parent 3cab5b36c1
commit 2e3ef4cc07

View File

@ -622,14 +622,14 @@ class Activity
} }
if (!empty($this->context->conversation)) { if (!empty($this->context->conversation)) {
$xs->element('link', array('rel' => 'ostatus:conversation', $xs->element('link', array('rel' => ActivityContext::CONVERSATION,
'href' => $this->context->conversation)); 'href' => $this->context->conversation));
} }
foreach ($this->context->attention as $attnURI) { foreach ($this->context->attention as $attnURI) {
$xs->element('link', array('rel' => 'ostatus:attention', $xs->element('link', array('rel' => ActivityContext::ATTENTION,
'href' => $attnURI)); 'href' => $attnURI));
$xs->element('link', array('rel' => 'mentioned', $xs->element('link', array('rel' => ActivityContext::MENTIONED,
'href' => $attnURI)); 'href' => $attnURI));
} }