mirror of
https://github.com/wassname/talk.git
synced 2026-08-16 11:29:31 +08:00
allow non-admin folks to list their comments
This commit is contained in:
@@ -32,7 +32,7 @@ export const saveBio = (user_id, formData) => dispatch => {
|
||||
export const fetchCommentsByUserId = userId => {
|
||||
return (dispatch) => {
|
||||
dispatch({type: actions.COMMENTS_BY_USER_REQUEST});
|
||||
return coralApi(`/comments?user_id${userId}`)
|
||||
return coralApi(`/comments?user_id=${userId}`)
|
||||
.then(({comments, assets}) => {
|
||||
comments.forEach(comment => dispatch(addItem(comment, 'comments')));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user