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
@@ -14,6 +14,7 @@ interface OutreachCandidateView {
|
||||
author: string;
|
||||
title: string;
|
||||
postUrl: string;
|
||||
targetComment: { body: string; permalink: string } | null;
|
||||
sourceType: 'image' | 'chat';
|
||||
status: ActiveCandidateStatus;
|
||||
priority: number;
|
||||
@@ -72,6 +73,12 @@ export function createOutreachRouter(ctx: WebContext): Router {
|
||||
author: candidate.author,
|
||||
title: candidate.post.title,
|
||||
postUrl: redditPostUrl(candidate.post.permalink),
|
||||
targetComment: candidate.post.targetComment
|
||||
? {
|
||||
body: candidate.post.targetComment.body,
|
||||
permalink: redditPostUrl(candidate.post.targetComment.permalink),
|
||||
}
|
||||
: null,
|
||||
sourceType: candidate.sourceType,
|
||||
status: candidate.status as ActiveCandidateStatus,
|
||||
priority: candidate.priority,
|
||||
|
||||
Reference in new issue
Block a user