]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - lib/activity.php
Use the link property for the URL, not the ID
[quix0rs-gnu-social.git] / 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 */