[Glitch] Fix follow relationships not loading after notifications fetch
Port 4f7f6b3922
to glitch-soc
Signed-off-by: Claire <claire.github-309c@sitedethib.com>
th-new
parent
103c0ca4f7
commit
08ac91c40b
|
@ -65,7 +65,7 @@ defineMessages({
|
|||
const fetchRelatedRelationships = (dispatch, notifications) => {
|
||||
const accountIds = notifications.filter(item => ['follow', 'follow_request', 'admin.sign_up'].indexOf(item.type) !== -1).map(item => item.account.id);
|
||||
|
||||
if (accountIds > 0) {
|
||||
if (accountIds.length > 0) {
|
||||
dispatch(fetchRelationships(accountIds));
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue