This commit is contained in:
syuilo 2019-02-07 23:27:42 +09:00
parent c1d728a616
commit c463284c2f
No known key found for this signature in database
GPG Key ID: BDC4C49D06AB9D69
1 changed files with 1 additions and 8 deletions

View File

@ -17,15 +17,8 @@ export const meta = {
};
export default define(meta, (ps, me) => new Promise(async (res, rej) => {
const instance = await Instance
.findOne({ host: ps.host });
if (instance == null) {
return rej('instance not found');
}
const followings = await Following.find({
'_follower.host': { $ne: null }
'_follower.host': ps.host
});
const pairs = await Promise.all(followings.map(f => Promise.all([