]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
fix call of common_find_mentions() in Notice::saveReplies()
authorEvan Prodromou <evan@status.net>
Sat, 27 Feb 2010 21:30:38 +0000 (16:30 -0500)
committerEvan Prodromou <evan@status.net>
Sat, 27 Feb 2010 21:30:38 +0000 (16:30 -0500)
classes/Notice.php

index 6614f3d558a6353de92cc8f8fd61a8dc5123bd77..3702dbcfa8e59010b1ee07aba9983eb8b1f1e3a8 100644 (file)
@@ -973,7 +973,10 @@ class Notice extends Memcached_DataObject
 
         $sender = Profile::staticGet($this->profile_id);
 
-        $mentions = common_find_mentions($this->profile_id, $this->content);
+        // @todo ideally this parser information would only
+        // be calculated once.
+
+        $mentions = common_find_mentions($this->content, $this);
 
         $replied = array();