fix(board): account comments couldn't appear instantly in feed

Date.now() is in milliseconds, timestamp is in seconds
This commit is contained in:
Tom (plebeius.eth)
2024-11-05 18:06:26 +01:00
parent c2363fe03b
commit 0b92c60f34
+1 -1
View File
@@ -84,7 +84,7 @@ const Board = () => {
return (
!deleted &&
!removed &&
timestamp > Date.now() - 60 * 60 * 1000 &&
timestamp > Date.now() / 1000 - 60 * 60 &&
state === 'succeeded' &&
cid &&
(hideThreadsWithoutImages ? getHasThumbnail(getCommentMediaInfo(comment), comment?.link) : true) &&