mirror of
https://iceshrimp.dev/crimekillz/iceshrimp-161sh.git
synced 2024-11-22 20:23:49 +01:00
Fix peers API returning suspended instances
This commit is contained in:
parent
85f92a5ddc
commit
ef5ad15012
@ -91,6 +91,9 @@ router.use(twitter.routes());
|
||||
router.get('/v1/instance/peers', async ctx => {
|
||||
const instances = await Instances.find({
|
||||
select: ['host'],
|
||||
where: {
|
||||
isSuspended: false,
|
||||
},
|
||||
});
|
||||
|
||||
ctx.body = instances.map(instance => instance.host);
|
||||
|
Loading…
Reference in New Issue
Block a user