mirror of
https://activitypub.software/TransFem-org/Sharkey.git
synced 2024-12-14 06:00:44 +01:00
Fix bug
This commit is contained in:
parent
c1d728a616
commit
c463284c2f
1 changed files with 1 additions and 8 deletions
|
@ -17,15 +17,8 @@ export const meta = {
|
||||||
};
|
};
|
||||||
|
|
||||||
export default define(meta, (ps, me) => new Promise(async (res, rej) => {
|
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({
|
const followings = await Following.find({
|
||||||
'_follower.host': { $ne: null }
|
'_follower.host': ps.host
|
||||||
});
|
});
|
||||||
|
|
||||||
const pairs = await Promise.all(followings.map(f => Promise.all([
|
const pairs = await Promise.all(followings.map(f => Promise.all([
|
||||||
|
|
Loading…
Reference in a new issue