about summary refs log tree commit diff
path: root/app/javascript
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2018-03-12 03:20:56 +0100
committerGitHub <noreply@github.com>2018-03-12 03:20:56 +0100
commit4f7f6b3922436e7fad352e5835f2ecdc44568d7b (patch)
tree64cab8409ada087a83d6890cfadf8f29fbc6710d /app/javascript
parent8b14726f5b84a9634c5cbc1ef8c33ce4f6eeced6 (diff)
Fix follow relationships not loading after notifications fetch (#6746)
Diffstat (limited to 'app/javascript')
-rw-r--r--app/javascript/mastodon/actions/notifications.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/javascript/mastodon/actions/notifications.js b/app/javascript/mastodon/actions/notifications.js
index 502690045..cf9242d0f 100644
--- 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));
   }
 };