Limit usernames to 30 chars, statuses to 500, open account after follow form success

This commit is contained in:
Eugen Rochko committed 2016-09-25 15:26:56 +02:00
1 parent 62b384824d
commit e9bc4a4a08
9 files changed
+25 -13

No files matched your search

@@ -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));
});