1
1
Fork 0
mirror of https://code.mensbeam.com/MensBeam/Arsse.git synced 2024-12-23 08:44:54 +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; return $out;
} }
protected function getItemIds(Context $c = null): array { protected function getItemIds(Context $c = null): string {
$out = []; $out = [];
foreach (Arsse::$db->articleList(Arsse::$user->id, $c) as $r) { foreach (Arsse::$db->articleList(Arsse::$user->id, $c) as $r) {
$out[] = (int) $r['id']; $out[] = (int) $r['id'];
} }
return $out; return implode(",", $out);
} }
} }