]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Revert "Better ID for notice activity"
authorMikael Nordfeldth <mmn@hethane.se>
Mon, 21 Oct 2013 20:27:12 +0000 (22:27 +0200)
committerMikael Nordfeldth <mmn@hethane.se>
Mon, 21 Oct 2013 21:25:35 +0000 (23:25 +0200)
This reverts commit 8cc4660bd94a6de922794e3feec3742a1c7cb1bf.

This seems like something Evan only did to make pump.io import notices easier,
or maybe he just wanted to get rid of the identi.ca URLs?

classes/Notice.php

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