mirror of
https://github.com/ecency/ecency-mobile.git
synced 2024-12-22 04:41:43 +03:00
adding timestamp to comment parser to invalidate local vote map
This commit is contained in:
parent
00b3528eae
commit
81b460b838
@ -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,
|
||||||
|
@ -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;
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user