aboutsummaryrefslogtreecommitdiff
path: root/p
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2020-04-30 23:17:46 +0200
committerGravatar GitHub <noreply@github.com> 2020-04-30 23:17:46 +0200
commitf0db70dcb03cef0c53db0ee0b678a64b79c941df (patch)
tree74c87b9e4a3deb0ead33badf1b25c36b4fd90e24 /p
parent8f188ffa8498424653a3e6086ef99bbe1745cd29 (diff)
API Use string type for Usec (#2935)
#Fix https://github.com/FreshRSS/FreshRSS/issues/2934
Diffstat (limited to 'p')
-rw-r--r--p/api/greader.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/p/api/greader.php b/p/api/greader.php
index d538ec429..877b91cc7 100644
--- a/p/api/greader.php
+++ b/p/api/greader.php
@@ -421,7 +421,7 @@ function unreadCount() { //http://blog.martindoms.com/2009/10/16/using-the-googl
$unreadcounts[] = array(
'id' => 'feed/' . $feed->id(),
'count' => $feed->nbNotRead(),
- 'newestItemTimestampUsec' => $lastUpdate,
+ 'newestItemTimestampUsec' => '' . $lastUpdate,
);
if ($catLastUpdate < $lastUpdate) {
$catLastUpdate = $lastUpdate;
@@ -430,7 +430,7 @@ function unreadCount() { //http://blog.martindoms.com/2009/10/16/using-the-googl
$unreadcounts[] = array(
'id' => 'user/-/label/' . htmlspecialchars_decode($cat->name(), ENT_QUOTES),
'count' => $cat->nbNotRead(),
- 'newestItemTimestampUsec' => $catLastUpdate,
+ 'newestItemTimestampUsec' => '' . $catLastUpdate,
);
$totalUnreads += $cat->nbNotRead();
if ($totalLastUpdate < $catLastUpdate) {
@@ -445,14 +445,14 @@ function unreadCount() { //http://blog.martindoms.com/2009/10/16/using-the-googl
$unreadcounts[] = array(
'id' => 'user/-/label/' . htmlspecialchars_decode($label->name(), ENT_QUOTES),
'count' => $label->nbUnread(),
- 'newestItemTimestampUsec' => $lastUpdate,
+ 'newestItemTimestampUsec' => '' . $lastUpdate,
);
}
$unreadcounts[] = array(
'id' => 'user/-/state/com.google/reading-list',
'count' => $totalUnreads,
- 'newestItemTimestampUsec' => $totalLastUpdate,
+ 'newestItemTimestampUsec' => '' . $totalLastUpdate,
);
echo json_encode(array(