Explorar o código

Merge pull request #846 from pixelfed/frontend-ui-refactor

Frontend ui refactor
daniel %!s(int64=6) %!d(string=hai) anos
pai
achega
8a928d6099
Modificáronse 5 ficheiros con 6 adicións e 1 borrados
  1. BIN=BIN
      public/css/app.css
  2. BIN=BIN
      public/css/appdark.css
  3. BIN=BIN
      public/js/timeline.js
  4. BIN=BIN
      public/mix-manifest.json
  5. 6 1
      resources/assets/js/components/Timeline.vue

BIN=BIN
public/css/app.css


BIN=BIN
public/css/appdark.css


BIN=BIN
public/js/timeline.js


BIN=BIN
public/mix-manifest.json


+ 6 - 1
resources/assets/js/components/Timeline.vue

@@ -450,7 +450,12 @@
 			fetchNotifications() {
 				axios.get('/api/v1/notifications')
 				.then(res => {
-					this.notifications = res.data;
+					this.notifications = res.data.filter(n => {
+						if(n.type == 'share' && !status) {
+							return false;
+						}
+						return true;
+					});
 					$('.notification-card .loader').addClass('d-none');
 					$('.notification-card .contents').removeClass('d-none');
 				});