Re-adding notification length to config.

This commit is contained in:
David Jay
2016-11-09 13:54:44 -05:00
parent 6616cf0c51
commit 13aabb9974
2 changed files with 9 additions and 7 deletions
@@ -151,12 +151,12 @@ class CommentStream extends Component {
<PubDate created_at={reply.created_at}/>
<Content body={reply.body}/>
<div className="replyActions">
<Flag
addNotificiation={this.props.addNotification}
id={replyId}
flag={reply.flag}
postAction={this.props.postAction}
currentUser={this.props.auth.user}/>
<Flag
addNotificiation={this.props.addNotification}
id={replyId}
flag={reply.flag}
postAction={this.props.postAction}
currentUser={this.props.auth.user}/>
<ReplyButton
updateItem={this.props.updateItem}
parent_id={reply.parent_id}/>
@@ -21,7 +21,9 @@ export const fetchConfig = () => async (dispatch) => {
//TODO: Replace with fetching config from backend
// const response = await fetch(`./talk.config.json`)
// const json = await response.json()
dispatch({ type: FETCH_CONFIG_SUCCESS, config: fromJS({}) })
dispatch({ type: FETCH_CONFIG_SUCCESS, config: fromJS({
notifLength: 4500
}) })
} catch (error) {
dispatch({ type: FETCH_CONFIG_FAILED })
}