Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
b1acksun committed May 11, 2018
1 parent 790416e commit bc0fc71
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions app/components/elements/ReplyEditor.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -685,6 +685,8 @@ export default formId => connect(
let allCategories = Set([...formCategories.toJS(), ...rtags.hashtags])
if(/^[-a-z\d]+$/.test(rootCategory)) allCategories = allCategories.add(rootCategory)

if (allCategories.has('stihi-io')) allCategories = allCategories.delete('stihi-io')

// merge
const meta = isEdit ? jsonMetadata : {}
if(allCategories.size) meta.tags = allCategories.toJS(); else delete meta.tags
Expand All @@ -711,7 +713,7 @@ export default formId => connect(
errorCallback(`You have ${meta.tags.length} tags total${includingCategory}. Please use only 5 in your post and category line.`)
return
}

debugger
startLoadingIndicator()

const originalBody = isEdit ? originalPost.body : null
Expand Down Expand Up @@ -760,7 +762,7 @@ export default formId => connect(
if (res.iso6391code) {
data.operation.json_metadata.language = res.iso6391code
}
dispatch(transaction.actions.broadcastOperation(data))
//dispatch(transaction.actions.broadcastOperation(data))
}
}).catch(error => {
console.error('Caught determine language code server error', error);
Expand Down

0 comments on commit bc0fc71

Please sign in to comment.