Shlee 6 月之前
父节点
当前提交
375fa5cf65
共有 1 个文件被更改,包括 0 次插入26 次删除
  1. 0 26
      resources/assets/components/partials/profile/ProfileFeed.vue

+ 0 - 26
resources/assets/components/partials/profile/ProfileFeed.vue

@@ -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);
 			},