]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Better ID for notice activity
authorEvan Prodromou <evan@e14n.com>
Sat, 15 Jun 2013 16:07:34 +0000 (12:07 -0400)
committerEvan Prodromou <evan@e14n.com>
Sat, 15 Jun 2013 16:07:34 +0000 (12:07 -0400)
classes/Notice.php

index 83d49f3d0f405a47fc8e5ee72bdd4b734067eed8..7516e146b2172b6cd8ffc4f6a55b94ed63d1962d 100644 (file)
@@ -1498,9 +1498,8 @@ class Notice extends Managed_DataObject
 
         if (Event::handle('StartNoticeAsActivity', array($this, &$act))) {
 
-            $act->id      = $this->uri;
+            $act->id      = TagURI::mint("post:".$this->id);
             $act->time    = strtotime($this->created);
-            $act->link    = $this->bestUrl();
             $act->content = common_xml_safe_str($this->rendered);
 
             $profile = $this->getProfile();