mirror of
https://activitypub.software/TransFem-org/Sharkey.git
synced 2024-12-15 05:05:42 +01:00
follow lint
This commit is contained in:
parent
5aa5e5cc70
commit
7cd6b1c666
2 changed files with 9 additions and 9 deletions
|
@ -108,7 +108,7 @@ const self = (
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
return prev ? prev._id : null;
|
return prev ? prev._id : null;
|
||||||
})()
|
})();
|
||||||
|
|
||||||
// Get next post info
|
// Get next post info
|
||||||
_post.next = (async () => {
|
_post.next = (async () => {
|
||||||
|
@ -126,7 +126,7 @@ const self = (
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
return next ? next._id : null;
|
return next ? next._id : null;
|
||||||
})()
|
})();
|
||||||
|
|
||||||
if (_post.reply_id) {
|
if (_post.reply_id) {
|
||||||
// Populate reply to post
|
// Populate reply to post
|
||||||
|
@ -158,8 +158,8 @@ const self = (
|
||||||
myChoice.is_voted = true;
|
myChoice.is_voted = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
return poll
|
return poll;
|
||||||
})(_post.poll)
|
})(_post.poll);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Fetch my reaction
|
// Fetch my reaction
|
||||||
|
@ -176,13 +176,13 @@ const self = (
|
||||||
return reaction.reaction;
|
return reaction.reaction;
|
||||||
}
|
}
|
||||||
|
|
||||||
return null
|
return null;
|
||||||
})();
|
})();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// resolve promises in _post object
|
// resolve promises in _post object
|
||||||
_post = await rap(_post)
|
_post = await rap(_post);
|
||||||
|
|
||||||
resolve(_post);
|
resolve(_post);
|
||||||
});
|
});
|
||||||
|
|
|
@ -112,7 +112,7 @@ export default (
|
||||||
deleted_at: { $exists: false }
|
deleted_at: { $exists: false }
|
||||||
});
|
});
|
||||||
return follow !== null;
|
return follow !== null;
|
||||||
})()
|
})();
|
||||||
|
|
||||||
// If the user is followed
|
// If the user is followed
|
||||||
_user.is_followed = (async () => {
|
_user.is_followed = (async () => {
|
||||||
|
@ -122,7 +122,7 @@ export default (
|
||||||
deleted_at: { $exists: false }
|
deleted_at: { $exists: false }
|
||||||
});
|
});
|
||||||
return follow2 !== null;
|
return follow2 !== null;
|
||||||
})()
|
})();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (opts.detail) {
|
if (opts.detail) {
|
||||||
|
@ -153,7 +153,7 @@ export default (
|
||||||
}
|
}
|
||||||
|
|
||||||
// resolve promises in _user object
|
// resolve promises in _user object
|
||||||
_user = await rap(_user)
|
_user = await rap(_user);
|
||||||
|
|
||||||
resolve(_user);
|
resolve(_user);
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue