Fix NSFW reply refusals and media offers

This commit is contained in:
Jamie Brunton committed 2026-08-14 08:59:07 +01:00
1 parent e9a4c965ee
commit 6b2e1bc380
11 files changed
+161 -22

No files matched your search

+5
View File
@@ -21,6 +21,11 @@ describe('media library request detection', () => {
it('does not treat an unrelated show-me instruction as an image request', () => {
expect(detectMediaRequest('show me how this works')).toBeNull();
});
it('treats clear acceptance of the bot\'s prior generic media offer as a request', () => {
expect(detectMediaRequest('yes please 😏', [], 'Want me to send you a pic?')).toBe('generic');
expect(detectMediaRequest('yes please', [], 'Want to hear a joke?')).toBeNull();
});
});
describe('MediaLibraryExchangeService', () => {