Skip to content
Snippets Groups Projects
Commit cc50b045 authored by Jason Salyers's avatar Jason Salyers
Browse files

[JES] Fix for comments disappearing. I had an invalid check when trying to...

[JES] Fix for comments disappearing. I had an invalid check when trying to determine if a comment was new or if it was an edit of an existing comment
parent 17a63a10
No related branches found
No related tags found
2 merge requests!152Develop,!151[JES] Fix for comments disappearing. I had an invalid check when trying to...
This commit is part of merge request !151. Comments created here will be created in the context of that merge request.
...@@ -85,6 +85,12 @@ export default function reducer(state = defaultState, action = {}) { ...@@ -85,6 +85,12 @@ export default function reducer(state = defaultState, action = {}) {
body: payload.body, body: payload.body,
title: payload.title, title: payload.title,
category: payload.category, category: payload.category,
stats: {
hide: false,
gray: false,
total_votes: 0,
flag_weight: 0,
},
}; };
return state.updateIn(['content', key], Map(), c => return state.updateIn(['content', key], Map(), c =>
c.mergeDeep(update) c.mergeDeep(update)
......
...@@ -392,7 +392,10 @@ function* broadcastPayload({ ...@@ -392,7 +392,10 @@ function* broadcastPayload({
function* accepted_comment({ operation }) { function* accepted_comment({ operation }) {
const { author, permlink } = operation; const { author, permlink } = operation;
//yield call(getContent, { author, permlink }); //yield call(getContent, { author, permlink });
if (operation.title === '') { if (
operation.__config.originalBody !== null &&
operation.__config.originalBody !== undefined
) {
yield call(lazyUpdate, operation); yield call(lazyUpdate, operation);
} else { } else {
yield call(wait, 9000); yield call(wait, 9000);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment