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)
{
$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)) {