Fix commenter-targeted outreach attribution

This commit is contained in:
jjbrunton committed 2026-08-14 12:45:16 +01:00
1 parent b5304e24e3
commit f77157d303
19 files changed
+328 -49

No files matched your search

+10
View File
@@ -41,6 +41,12 @@ describe('outreach route', () => {
id: 'post-1', subreddit: 'example', author: 'alice', author_fullname: 't2_alice',
title: '[25F] Hello', url: 'https://i.redd.it/post-1.jpg', permalink: '/r/example/comments/post-1/hello/',
thumbnail: '', is_self: false, created_utc: 100, over_18: true, spoiler: false,
targetComment: {
body: 'I wish that was me',
permalink: '/r/example/comments/post-1/hello/comment-1/',
sourcePostId: 'post-1', sourcePostAuthor: 'source-author',
expressedGender: 'unknown', confidence: 0.94,
},
},
prepared: {
generatedMessage: 'Prepared opener for Alice',
@@ -85,6 +91,10 @@ describe('outreach route', () => {
candidates: [{
postId: 'post-1', status: 'sending', hasPreparedMessage: true,
postUrl: 'https://www.reddit.com/r/example/comments/post-1/hello/',
targetComment: {
body: 'I wish that was me',
permalink: 'https://www.reddit.com/r/example/comments/post-1/hello/comment-1/',
},
owner: { accountId: 'account-a', redditUsername: 'operator' },
preparation: {
message: 'Prepared opener for Alice',