From: Brion Vibber Date: Tue, 29 Mar 2011 23:50:06 +0000 (-0700) Subject: Fix for bookmark posting: missing object was causing error output to crush ajax X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=23436ad83d3039aee73799b0530921cb13221ce3;p=quix0rs-gnu-social.git Fix for bookmark posting: missing object was causing error output to crush ajax --- diff --git a/plugins/Bookmark/BookmarkPlugin.php b/plugins/Bookmark/BookmarkPlugin.php index bc8985e907..4c13ec79cb 100644 --- a/plugins/Bookmark/BookmarkPlugin.php +++ b/plugins/Bookmark/BookmarkPlugin.php @@ -459,6 +459,7 @@ class BookmarkPlugin extends MicroAppPlugin "Formatting notice {$notice->uri} as a bookmark."); $object = new ActivityObject(); + $nb = Bookmark::getByNotice($notice); $object->id = $notice->uri; $object->type = ActivityObject::BOOKMARK;