adding timestamp to comment parser to invalidate local vote map

This commit is contained in:
Nouman Tahir 2021-07-09 16:42:51 +05:00
parent 00b3528eae
commit 81b460b838
2 changed files with 4 additions and 2 deletions

View File

@ -14,7 +14,7 @@ import {
addDraft,
updateDraft,
getDrafts,
addSchedule
addSchedule,
} from '../../../providers/ecency/ecency';
import { toastNotification, setRcOffer } from '../../../redux/actions/uiAction';
import {
@ -726,7 +726,6 @@ class EditorContainer extends Component {
return;
}
if (currentAccount) {
this.setState({
isPostSending: true,

View File

@ -82,6 +82,9 @@ export const parseComments = async (comments) => {
comment.markdownBody = get(comment, 'body');
comment.body = renderPostBody(comment, true, webp);
//stamp comments with fetched time;
comment.post_fetched_at = new Date().getTime();
return comment;
});
};