Skip to content

Commit 4b0a05d

Browse files
authored
fix: update bot detection to set system flag, ignore custom flag (#3565)
1 parent 64d2f5c commit 4b0a05d

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

backend/src/database/repositories/memberRepository.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,9 @@ class MemberRepository {
122122
if (!data.attributes) {
123123
data.attributes = {}
124124
}
125-
data.attributes.isBot = { ...existingIsBot, default: true, system: true }
125+
// When bot detection confirms a bot, set system flag and don't preserve custom flag
126+
// Custom flag should only be set when user manually marks as bot, not when system detects it
127+
data.attributes.isBot = { default: true, system: true }
126128
}
127129
}
128130

0 commit comments

Comments
 (0)