Return string list of item IDs

This commit is contained in:
J. King 2019-04-05 08:20:05 -04:00
parent 0752e9cf3d
commit 0ef606aa03

View file

@ -269,11 +269,11 @@ class API extends \JKingWeb\Arsse\REST\AbstractHandler {
return $out;
}
protected function getItemIds(Context $c = null): array {
protected function getItemIds(Context $c = null): string {
$out = [];
foreach (Arsse::$db->articleList(Arsse::$user->id, $c) as $r) {
$out[] = (int) $r['id'];
}
return $out;
return implode(",", $out);
}
}