Simplify reactOnComment action

This commit is contained in:
Thomas Scholtes
2025-07-16 12:58:03 +02:00
committed by Rūdolfs Ošiņš
parent fdabbac599
commit a33799d62a
5 changed files with 6 additions and 16 deletions
+1 -2
View File
@@ -221,7 +221,6 @@
}
async function reactOnComment(
publicKey: string,
commentId: string,
authors: Author[],
reaction: string,
@@ -239,7 +238,7 @@
reaction,
review: review.id,
active: !authors.find(
({ did }) => publicKeyFromDid(did) === publicKey,
({ did }) => publicKeyFromDid(did) === config.publicKey,
),
},
opts: { announce: $nodeRunning && $announce },