Update Notifications.vue component, fix filtering logic to prevent endless spinner

pull/4443/head
Daniel Supernault 2023-06-02 05:30:11 -06:00
rodzic 9c0d0a31f2
commit 3df9b53f4e
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 0DEF1C662C9033F7
1 zmienionych plików z 4 dodań i 4 usunięć

Wyświetl plik

@ -234,16 +234,16 @@
return;
}
let data = res.data.filter(n => {
if(n.type == 'share' && !n.status) {
if(n.type == 'share' && (!n.status || !n.account)) {
return false;
}
if(n.type == 'comment' && !n.status) {
if(n.type == 'comment' && (!n.status || !n.account)) {
return false;
}
if(n.type == 'mention' && !n.status) {
if(n.type == 'mention' && (!n.status || !n.account)) {
return false;
}
if(n.type == 'favourite' && !n.status) {
if(n.type == 'favourite' && (!n.status || !n.account)) {
return false;
}
if(n.type == 'follow' && !n.account) {