浏览代码

Update Activity.vue component

Daniel Supernault 6 年之前
父节点
当前提交
d5b3aac1e7
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      resources/assets/js/components/Activity.vue

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

@@ -146,6 +146,9 @@ export default {
 						if(n.type == 'share' && !status) {
 							return false;
 						}
+						if(_.find(this.notifications, {id: n.id})) {
+							return false;
+						}
 						return true;
 					});
 					this.notifications.push(...data);