]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Fix for bookmark posting: missing object was causing error output to crush ajax
authorBrion Vibber <brion@pobox.com>
Tue, 29 Mar 2011 23:50:06 +0000 (16:50 -0700)
committerBrion Vibber <brion@pobox.com>
Tue, 29 Mar 2011 23:50:06 +0000 (16:50 -0700)
plugins/Bookmark/BookmarkPlugin.php

index bc8985e907b8821d992252c1eb8890f45bb5e7b4..4c13ec79cb3f335542d81968dc743010c67081ad 100644 (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;