Prevent location matching in bot messages

This commit is contained in:
jjbrunton committed 2026-08-09 14:37:23 +01:00
1 parent c21932389e
commit d5ebdec076
8 files changed
+112 -2

No files matched your search

+6
View File
@@ -117,4 +117,10 @@ describe('conversation state', () => {
expect(isSafeHybridMediaAsk('You have to prove it by sending a photo.')).toBe(false);
expect(isSafeHybridMediaAsk('What music are you into?')).toBe(false);
});
it('rejects replies that imply shared location or encourage meeting in person', () => {
expect(isSafeConversationReply("I'm in Manchester too, we're practically neighbours.")).toBe(false);
expect(isSafeConversationReply('We should meet up sometime.')).toBe(false);
expect(isSafeConversationReply("I'm 32M in the UK. What kind of music are you into?")).toBe(true);
});
});