From e9bc4a4a0822235afebbefa0c4d660b1be9ae52f Mon Sep 17 00:00:00 2001 From: Eugen Rochko Date: Sun, 25 Sep 2016 15:26:56 +0200 Subject: Limit usernames to 30 chars, statuses to 500, open account after follow form success --- app/assets/javascripts/components/actions/follow.jsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'app/assets/javascripts/components/actions/follow.jsx') diff --git a/app/assets/javascripts/components/actions/follow.jsx b/app/assets/javascripts/components/actions/follow.jsx index aeb786aa3..f747a3190 100644 --- a/app/assets/javascripts/components/actions/follow.jsx +++ b/app/assets/javascripts/components/actions/follow.jsx @@ -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)); }); -- cgit