Fix for bookmark posting: missing object was causing error output to crush ajax

This commit is contained in:
Brion Vibber 2011-03-29 16:50:06 -07:00
parent 674e3c2a0e
commit 23436ad83d

View File

@ -459,6 +459,7 @@ class BookmarkPlugin extends MicroAppPlugin
"Formatting notice {$notice->uri} as a bookmark."); "Formatting notice {$notice->uri} as a bookmark.");
$object = new ActivityObject(); $object = new ActivityObject();
$nb = Bookmark::getByNotice($notice);
$object->id = $notice->uri; $object->id = $notice->uri;
$object->type = ActivityObject::BOOKMARK; $object->type = ActivityObject::BOOKMARK;