Explorar o código

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

Daniel Supernault %!s(int64=2) %!d(string=hai) anos
pai
achega
3df9b53f4e
Modificáronse 1 ficheiros con 4 adicións e 4 borrados
  1. 4 4
      resources/assets/components/sections/Notifications.vue

+ 4 - 4
resources/assets/components/sections/Notifications.vue

@@ -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) {