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

View File

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