From: Evan Prodromou Date: Mon, 7 Mar 2011 19:25:37 +0000 (-0500) Subject: fix object errors with bookmark notices X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=095e2a74d4af3f5312ab44e2f388bf48d0f6cc36;p=quix0rs-gnu-social.git fix object errors with bookmark notices --- 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)) {