From 3ce5baadaeb81d51bf65df85415fe1adf52f32b2 Mon Sep 17 00:00:00 2001 From: Benjamin Mako Hill Date: Tue, 8 Nov 2011 14:27:13 -0500 Subject: [PATCH] fixed post_all API to allow export of private data --- api/posts_all.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/api/posts_all.php b/api/posts_all.php index 4f05d39..0831d9f 100644 --- a/api/posts_all.php +++ b/api/posts_all.php @@ -8,6 +8,9 @@ require_once 'httpauth.inc.php'; require_once '../header.inc.php'; +// set user as logged in so private bookmarks are exported +$loggedon = true; + $bookmarkservice =& ServiceFactory::getServiceInstance('BookmarkService'); $userservice =& ServiceFactory::getServiceInstance('UserService'); @@ -43,7 +46,7 @@ foreach($bookmarks['bookmarks'] as $row) { $taglist = 'system:unfiled'; } - echo "\t\r\n"; + echo "\t\r\n"; } echo ''; -- 2.39.2