about summary refs log tree commit diff
path: root/app/assets/javascripts/components/actions/follow.jsx
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2016-09-25 15:26:56 +0200
committerEugen Rochko <eugen@zeonfederated.com>2016-09-25 15:26:56 +0200
commite9bc4a4a0822235afebbefa0c4d660b1be9ae52f (patch)
treec31007e321a90a55da1ad65cfd6a1633b8d1cc9a /app/assets/javascripts/components/actions/follow.jsx
parent62b384824d39fb56cb211670126b38645fdf10cc (diff)
Limit usernames to 30 chars, statuses to 500, open account after follow form success
Diffstat (limited to 'app/assets/javascripts/components/actions/follow.jsx')
-rw-r--r--app/assets/javascripts/components/actions/follow.jsx3
1 files changed, 2 insertions, 1 deletions
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));
     });