Limit usernames to 30 chars, statuses to 500, open account after follow form success
This commit is contained in:
@ -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 New Issue
Block a user