Commit 75b901d9 authored by Andrew Dolgov's avatar Andrew Dolgov

api/getCategories: return virtual categories and Uncategorized

parent e9ed9ec8
......@@ -191,6 +191,16 @@
}
}
foreach (array(-2,-1,0) as $cat_id) {
$unread = getFeedUnread($link, $cat_id, true);
if ($unread || !$unread_only) {
array_push($cats, array("id" => $cat_id,
"title" => getCategoryTitle($link, $cat_id),
"unread" => $unread));
}
}
print api_wrap_reply(API_STATUS_OK, $seq, $cats);
break;
......
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