Enforce commenter gender targeting

This commit is contained in:
jjbrunton committed 2026-08-14 12:57:00 +01:00
1 parent 8523873831
commit 12e2dc56f1
5 files changed
+38 -6

No files matched your search

+2
View File
@@ -287,6 +287,8 @@ export class MonitorService {
return pairs.flatMap(({ post, comment }): RedditPost[] => {
const verdict = this.commentReactionCache.get(comment.fullname);
if (!verdict?.qualifies || verdict.confidence < COMMENT_REACTION_CONFIDENCE) return [];
const targetGenders = this.config.reddit.targetGenders;
if (targetGenders.length > 0 && !targetGenders.includes(verdict.expressedGender)) return [];
return [{
...post,
id: comment.fullname,