From: Mikael Nordfeldth Date: Mon, 21 Oct 2013 16:28:04 +0000 (+0200) Subject: Use pre-defined const instead of strings X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=2e3ef4cc078a29be245c6b19f5c8d900d9fe75cc;p=quix0rs-gnu-social.git Use pre-defined const instead of strings --- diff --git a/lib/activity.php b/lib/activity.php index 7546e2cd43..051993ddff 100644 --- a/lib/activity.php +++ b/lib/activity.php @@ -622,14 +622,14 @@ class Activity } 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', + $xs->element('link', array('rel' => ActivityContext::ATTENTION, 'href' => $attnURI)); - $xs->element('link', array('rel' => 'mentioned', + $xs->element('link', array('rel' => ActivityContext::MENTIONED, 'href' => $attnURI)); }