Show Reddit post age in conversations

This commit is contained in:
jjbrunton committed 2026-08-09 09:54:53 +01:00
1 parent 7db60e8839
commit 50f9f8a6aa
14 files changed
+65 -11

No files matched your search

+1
View File
@@ -274,6 +274,7 @@ export class MonitorService {
title: post.title,
postUrl: this.redditApi.getPostUrl(post),
imageUrl: subredditType === 'image' ? this.redditApi.getImageUrl(post) : null,
postCreatedAt: post.created_utc * 1000,
processedAt: Date.now(),
});
this.postsRepo.setError(post.id, reason);
@@ -288,7 +288,8 @@ class AccountRuntimeLoop {
const imageUrl = isChat ? null : redditApi.getImageUrl(post);
postsRepo.insert({
id: post.id, subreddit: post.subreddit, author: post.author, title: post.title,
postUrl: redditApi.getPostUrl(post), imageUrl, processedAt: Date.now(),
postUrl: redditApi.getPostUrl(post), imageUrl,
postCreatedAt: post.created_utc * 1000, processedAt: Date.now(),
});
// Seller screening is performed once by the shared MonitorService before
// assignment. Do not repeat its profile request for every recipient.