changed post content to markdown as original for edit case instead html

This commit is contained in:
u-e 2019-03-12 14:47:09 +03:00
parent 820b0666f5
commit b0377bb332
2 changed files with 5 additions and 1 deletions

View File

@ -90,7 +90,7 @@ class EditorContainer extends Component {
this.setState(
{
isEdit,
draftPost: { title: post.title, body: post.body, tags: post.json_metadata.tags },
draftPost: { title: post.title, body: post.markdownBody, tags: post.json_metadata.tags },
},
() => {
this._getPurePost(post.author, post.permlink);

View File

@ -28,6 +28,10 @@ export const parsePost = (post, currentUserName, isSummary = false) => {
_post.is_voted = false;
}
if (currentUserName === _post.author) {
_post.markdownBody = post.body;
}
const totalPayout = parseFloat(_post.pending_payout_value)
+ parseFloat(_post.total_payout_value)
+ parseFloat(_post.curator_payout_value);