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
1 changed files with 1 additions and 0 deletions

View File

@ -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;