Fix commenter-targeted outreach attribution
This commit is contained in:
1 parent
b5304e24e3
commit
f77157d303
19 files changed
+328
-49
No files matched your search
@@ -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',
|
||||
|
||||
Reference in new issue
Block a user