mirror of
https://github.com/wassname/talk.git
synced 2026-07-03 07:11:27 +08:00
Re-adding notification length to config.
This commit is contained in:
@@ -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 })
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user