]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Use the link property for the URL, not the ID
authorEvan Prodromou <evan@e14n.com>
Sat, 8 Jun 2013 23:18:28 +0000 (19:18 -0400)
committerEvan Prodromou <evan@e14n.com>
Sat, 8 Jun 2013 23:19:16 +0000 (19:19 -0400)
lib/activity.php

index 779be2a9ad0840b18c81281e114839f7b38f9f2f..cd2383808d3fb3a0cfa5fc425c0af88c0b1b751a 100644 (file)
@@ -482,7 +482,9 @@ class Activity
         $activity['verb'] = ActivityVerb::canonical($this->verb);
 
         // url
-        $activity['url'] = $this->id;
+        if ($this->link) {
+            $activity['url'] = $this->link;
+        }
 
         /* Purely extensions hereafter */