Ver a proveniência

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

master
Eugen Rochko há 6 anos
committed by GitHub
ascendente
cometimento
4f7f6b3922
Não foi encontrada uma chave conhecida para esta assinatura, na base de dados ID da chave GPG: 4AEE18F83AFDEB23
1 ficheiros alterados com 1 adições e 1 eliminações
  1. +1
    -1
      app/javascript/mastodon/actions/notifications.js

+ 1
- 1
app/javascript/mastodon/actions/notifications.js Ver ficheiro

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


Carregando…
Cancelar
Guardar