case "getUnread":
$login = db_escape_string($_REQUEST["login"]);
+ $fresh = $_REQUEST["fresh"] == "1";
header("Content-Type: text/plain; charset=utf-8");
if (db_num_rows($result) == 1) {
$uid = db_fetch_result($result, 0, "id");
+
print getGlobalUnread($link, $uid);
+
+ if ($fresh) {
+ print ";";
+ print getFeedArticles($link, -3, false, true, $uid);
+ }
+
} else {
print "-1;User not found";
}
{
"name": "Tiny Tiny RSS Notifier",
"background_page": "background.html",
- "version": "0.2",
+ "version": "0.2.1",
"description": "This extension displays the number of unread articles in your Tiny Tiny RSS installation",
"options_page": "options.html",
"icons": { "48": "images/icon.png", "128": "images/icon.png" },
"browser_action": {
"default_icon": "images/normal.png",
- "default_title": "You have no unread articles.",
- "popup.disabled": "popup.html"
+ "default_title": "You have no unread articles."
},
"permissions": [
"tabs", "http://*/*", "https://*/*"