sforkowany z mirror/soapbox
Account lookup: fetch relationship
rodzic
e4d34f6d69
commit
f5024d6c8e
|
@ -176,6 +176,7 @@ export function fetchAccountByUsername(username, history) {
|
||||||
});
|
});
|
||||||
} else if (features.accountLookup) {
|
} else if (features.accountLookup) {
|
||||||
return dispatch(accountLookup(username)).then(account => {
|
return dispatch(accountLookup(username)).then(account => {
|
||||||
|
dispatch(fetchRelationships([account.id]));
|
||||||
dispatch(fetchAccountSuccess(account));
|
dispatch(fetchAccountSuccess(account));
|
||||||
}).catch(error => {
|
}).catch(error => {
|
||||||
dispatch(fetchAccountFail(null, error));
|
dispatch(fetchAccountFail(null, error));
|
||||||
|
|
Ładowanie…
Reference in New Issue