fix object errors with bookmark notices

This commit is contained in:
Evan Prodromou 2011-03-07 14:25:37 -05:00
parent f5782e9e56
commit 095e2a74d4

View File

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