logo

mastofe

My custom branche(s) on git.pleroma.social/pleroma/mastofe
commit: 4f7f6b3922436e7fad352e5835f2ecdc44568d7b
parent: 8b14726f5b84a9634c5cbc1ef8c33ce4f6eeced6
Author: Eugen Rochko <eugen@zeonfederated.com>
Date:   Mon, 12 Mar 2018 03:20:56 +0100

Fix follow relationships not loading after notifications fetch (#6746)


Diffstat:

Mapp/javascript/mastodon/actions/notifications.js2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app/javascript/mastodon/actions/notifications.js b/app/javascript/mastodon/actions/notifications.js @@ -24,7 +24,7 @@ defineMessages({ const fetchRelatedRelationships = (dispatch, notifications) => { const accountIds = notifications.filter(item => item.type === 'follow').map(item => item.account.id); - if (accountIds > 0) { + if (accountIds.length > 0) { dispatch(fetchRelationships(accountIds)); } };