Просмотр исходного кода

API fix continuation type (#3250)

#fix https://github.com/FreshRSS/FreshRSS/issues/3247
Alexandre Alapetite 5 лет назад
Родитель
Сommit
6887ba0592
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      p/api/greader.php

+ 2 - 2
p/api/greader.php

@@ -673,7 +673,7 @@ function streamContents($path, $include_target, $start_time, $stop_time, $count,
 	if (count($entries) >= $count) {
 		$entry = end($entries);
 		if ($entry != false) {
-			$response['continuation'] = $entry->id();
+			$response['continuation'] = '' . $entry->id();
 		}
 	}
 
@@ -729,7 +729,7 @@ function streamContentsItemsIds($streamId, $start_time, $stop_time, $count, $ord
 	if (count($ids) >= $count) {
 		$id = end($ids);
 		if ($id != false) {
-			$response['continuation'] = $id;
+			$response['continuation'] = '' . $id;
 		}
 	}