Kaynağa Gözat

Update Activity component, fix comment bug

Daniel Supernault 4 yıl önce
ebeveyn
işleme
9a2db8ebc0
1 değiştirilmiş dosya ile 12 ekleme ve 0 silme
  1. 12 0
      resources/assets/js/components/Activity.vue

+ 12 - 0
resources/assets/js/components/Activity.vue

@@ -144,6 +144,12 @@ export default {
 					if(n.type == 'share' && !status) {
 						return false;
 					}
+					if(n.type == 'comment' && !status) {
+						return false;
+					}
+					if(n.type == 'mention' && !status) {
+						return false;
+					}
 					return true;
 				});
 				let ids = res.data.map(n => n.id);
@@ -170,6 +176,12 @@ export default {
 						if(n.type == 'share' && !status) {
 							return false;
 						}
+						if(n.type == 'comment' && !status) {
+							return false;
+						}
+						if(n.type == 'mention' && !status) {
+							return false;
+						}
 						if(_.find(this.notifications, {id: n.id})) {
 							return false;
 						}