pull/5620/head
Shlee 1 month ago committed by GitHub
parent 599a36f4aa
commit 375fa5cf65
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -846,32 +846,6 @@
})
},
handleBookmark(index) {
let p = this.feed[index];
if(p.reblog) {
p = p.reblog;
}
axios.post('/i/bookmark', {
item: p.id
})
.then(res => {
if(this.feed[index].reblog) {
this.feed[index].reblog.bookmarked = !p.bookmarked;
} else {
this.feed[index].bookmarked = !p.bookmarked;
}
})
.catch(err => {
this.$bvToast.toast('Cannot bookmark post at this time.', {
title: 'Bookmark Error',
variant: 'danger',
autoHideDelay: 5000
});
});
},
formatCount(val) {
return App.util.format.count(val);
},

Loading…
Cancel
Save