diff --git a/db/util.js b/db/util.js index 1b4ba0c1..90b6e46b 100644 --- a/db/util.js +++ b/db/util.js @@ -209,6 +209,9 @@ async function fetchNotification (notificationEntry) { return { itemUrl: notificationEntry.value.itemUrl, createdAt: notificationEntry.value.createdAt, + blendedCreatedAt: item?.value?.createdAt + ? (item.value.createdAt < notificationEntry.value.createdAt ? item.value.createdAt : notificationEntry.value.createdAt) + : notificationEntry.value.createdAt, author: { userId, url: constructUserUrl(userId)