]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Use pre-defined const instead of strings
authorMikael Nordfeldth <mmn@hethane.se>
Mon, 21 Oct 2013 16:28:04 +0000 (18:28 +0200)
committerMikael Nordfeldth <mmn@hethane.se>
Mon, 21 Oct 2013 16:28:04 +0000 (18:28 +0200)
lib/activity.php

index 7546e2cd432c2fc6f8f82c6ab0402d3cab8e95ef..051993ddff3f587237a07a8e4effc692b1724c3f 100644 (file)
@@ -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));
             }