Limit usernames to 30 chars, statuses to 500, open account after follow form success
This commit is contained in:
		
							parent
							
								
									62b384824d
								
							
						
					
					
						commit
						e9bc4a4a08
					
				
					 9 changed files with 25 additions and 13 deletions
				
			
		|  | @ -12,7 +12,7 @@ export function changeFollow(text) { | |||
|   }; | ||||
| }; | ||||
| 
 | ||||
| export function submitFollow() { | ||||
| export function submitFollow(router) { | ||||
|   return function (dispatch, getState) { | ||||
|     dispatch(submitFollowRequest()); | ||||
| 
 | ||||
|  | @ -20,6 +20,7 @@ export function submitFollow() { | |||
|       uri: getState().getIn(['follow', 'text']) | ||||
|     }).then(function (response) { | ||||
|       dispatch(submitFollowSuccess(response.data)); | ||||
|       router.push(`/accounts/${response.data.id}`); | ||||
|     }).catch(function (error) { | ||||
|       dispatch(submitFollowFail(error)); | ||||
|     }); | ||||
|  |  | |||
		Reference in a new issue