Skip to content

Node.js based forum software built for the modern web

fix: lint

Julian Lam8ef4b72a0286
diff --git a/src/activitypub/out.js b/src/activitypub/out.js
index cfc0f2ecc9..d22487ab7b 100644
--- a/src/activitypub/out.js
+++ b/src/activitypub/out.js
@@ -98,9 +98,9 @@ Out.create.note = enabledCheck(async (uid, post) => {
const participantUids = await db.getSortedSetMembers(`tid:${tid}:posters`);
const participantRemoteUris = participantUids.filter(uid => !utils.isNumber(uid));
const immediateTargetsSet = new Set(
- participantRemoteUris.length
- ? targetsArr.filter(uri => participantRemoteUris.includes(uri))
- : [],
+ participantRemoteUris.length ?
+ targetsArr.filter(uri => participantRemoteUris.includes(uri)) :
+ [],
);
const deferredTargets = targetsArr.filter(uri => !immediateTargetsSet.has(uri));