diff --git a/app/gabsocial/actions/accounts.js b/app/gabsocial/actions/accounts.js index 8dcd8e052..c02892c38 100644 --- a/app/gabsocial/actions/accounts.js +++ b/app/gabsocial/actions/accounts.js @@ -128,7 +128,7 @@ export function fetchAccount(id) { export function fetchAccountByUsername(username) { return (dispatch, getState) => { - api(getState).get(`/api/v1/account_by_username/${username}`).then(response => { + api(getState).get(`/api/v1/accounts/${username}`).then(response => { dispatch(importFetchedAccount(response.data)); }).then(() => { dispatch(fetchAccountSuccess());