1
1
Fork 0
mirror of https://code.mensbeam.com/MensBeam/Arsse.git synced 2024-12-22 13:12:41 +00:00

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);
}
}