Commit 23436ad8 authored by Brion Vibber's avatar Brion Vibber

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

parent 674e3c2a
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment