mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-26 00:03:16 +00:00
Update Notifications.vue component, fix filtering logic to prevent endless spinner
This commit is contained in:
parent
69a53d0fa1
commit
6197a7b1e1
1 changed files with 4 additions and 4 deletions
|
@ -301,16 +301,16 @@
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
let data = res.data.filter(n => {
|
let data = res.data.filter(n => {
|
||||||
if(n.type == 'share' && !n.status) {
|
if(n.type == 'share' && (!n.status || !n.account)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if(n.type == 'comment' && !n.status) {
|
if(n.type == 'comment' && (!n.status || !n.account)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if(n.type == 'mention' && !n.status) {
|
if(n.type == 'mention' && (!n.status || !n.account)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if(n.type == 'favourite' && !n.status) {
|
if(n.type == 'favourite' && (!n.status || !n.account)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if(n.type == 'follow' && !n.account) {
|
if(n.type == 'follow' && !n.account) {
|
||||||
|
|
Loading…
Reference in a new issue