mirror of
https://github.com/bitsocialnet/5chan.git
synced 2026-08-03 07:41:04 +02:00
fix(board): account comments couldn't appear instantly in feed
Date.now() is in milliseconds, timestamp is in seconds
This commit is contained in:
@@ -84,7 +84,7 @@ const Board = () => {
|
|||||||
return (
|
return (
|
||||||
!deleted &&
|
!deleted &&
|
||||||
!removed &&
|
!removed &&
|
||||||
timestamp > Date.now() - 60 * 60 * 1000 &&
|
timestamp > Date.now() / 1000 - 60 * 60 &&
|
||||||
state === 'succeeded' &&
|
state === 'succeeded' &&
|
||||||
cid &&
|
cid &&
|
||||||
(hideThreadsWithoutImages ? getHasThumbnail(getCommentMediaInfo(comment), comment?.link) : true) &&
|
(hideThreadsWithoutImages ? getHasThumbnail(getCommentMediaInfo(comment), comment?.link) : true) &&
|
||||||
|
|||||||
Reference in New Issue
Block a user