Enforce commenter gender targeting
This commit is contained in:
1 parent
8523873831
commit
12e2dc56f1
5 files changed
+38
-6
No files matched your search
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user