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

+7
View File
@@ -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,