]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
fix object errors with bookmark notices
authorEvan Prodromou <evan@status.net>
Mon, 7 Mar 2011 19:25:37 +0000 (14:25 -0500)
committerEvan Prodromou <evan@status.net>
Mon, 7 Mar 2011 19:25:37 +0000 (14:25 -0500)
plugins/Bookmark/BookmarkPlugin.php

index 1ef5f5c0e32db0eadd56dff66e166ad2700028f5..44f3db7867469d862f852f488caa804a6fdda0b5 100644 (file)
@@ -510,6 +510,8 @@ class BookmarkPlugin extends MicroAppPlugin
 
     function showNotice($notice, $out)
     {
+        $nb = Bookmark::getByNotice($notice);
+
         $profile = $notice->getProfile();
 
         $atts = $notice->attachments();
@@ -542,8 +544,8 @@ class BookmarkPlugin extends MicroAppPlugin
 
         // Replies look like "for:" tags
 
-        $replies = $nli->notice->getReplies();
-        $tags = $nli->notice->getTags();
+        $replies = $notice->getReplies();
+        $tags = $notice->getTags();
 
         if (!empty($replies) || !empty($tags)) {