[Glitch] Fix follow relationships not loading after notifications fetch

Port 4f7f6b3922 to glitch-soc

Signed-off-by: Claire <claire.github-309c@sitedethib.com>
main
Eugen Rochko 2018-03-12 03:20:56 +01:00 committed by Claire
parent 103c0ca4f7
commit 08ac91c40b
1 changed files with 1 additions and 1 deletions

View File

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