From 095e2a74d4af3f5312ab44e2f388bf48d0f6cc36 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Mon, 7 Mar 2011 14:25:37 -0500 Subject: [PATCH] fix object errors with bookmark notices --- plugins/Bookmark/BookmarkPlugin.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/plugins/Bookmark/BookmarkPlugin.php b/plugins/Bookmark/BookmarkPlugin.php index 1ef5f5c0e3..44f3db7867 100644 --- a/plugins/Bookmark/BookmarkPlugin.php +++ b/plugins/Bookmark/BookmarkPlugin.php @@ -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)) {