mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-14 02:24:31 +00:00
Update Timeline.vue, fix notification bug
This commit is contained in:
parent
e45a3c4b93
commit
661e60027e
1 changed files with 6 additions and 1 deletions
|
@ -450,7 +450,12 @@
|
||||||
fetchNotifications() {
|
fetchNotifications() {
|
||||||
axios.get('/api/v1/notifications')
|
axios.get('/api/v1/notifications')
|
||||||
.then(res => {
|
.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 .loader').addClass('d-none');
|
||||||
$('.notification-card .contents').removeClass('d-none');
|
$('.notification-card .contents').removeClass('d-none');
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue