mirror of
https://github.com/ecency/ecency-mobile.git
synced 2025-01-02 19:06:39 +03:00
changed post content to markdown as original for edit case instead html
This commit is contained in:
parent
820b0666f5
commit
b0377bb332
@ -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);
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user