diff --git a/src/app/redux/GlobalReducer.js b/src/app/redux/GlobalReducer.js index cf2756f84d8a135563fa3fc8acffa3f52df96bc8..eda56b32d0cc1e1a41bffcfe09a354f30121f7d7 100644 --- a/src/app/redux/GlobalReducer.js +++ b/src/app/redux/GlobalReducer.js @@ -85,6 +85,12 @@ export default function reducer(state = defaultState, action = {}) { body: payload.body, title: payload.title, category: payload.category, + stats: { + hide: false, + gray: false, + total_votes: 0, + flag_weight: 0, + }, }; return state.updateIn(['content', key], Map(), c => c.mergeDeep(update) diff --git a/src/app/redux/TransactionSaga.js b/src/app/redux/TransactionSaga.js index aabf89309b8c27c37a6549e53d12a380df83c2b2..c725ba2bdb76ff222369bf35731c1e8f7c376170 100644 --- a/src/app/redux/TransactionSaga.js +++ b/src/app/redux/TransactionSaga.js @@ -392,7 +392,10 @@ function* broadcastPayload({ function* accepted_comment({ operation }) { const { author, permlink } = operation; //yield call(getContent, { author, permlink }); - if (operation.title === '') { + if ( + operation.__config.originalBody !== null && + operation.__config.originalBody !== undefined + ) { yield call(lazyUpdate, operation); } else { yield call(wait, 9000);