ソースを参照

Update Post.vue

Daniel Supernault 1 年間 前
コミット
3a27e637f8
1 ファイル変更2 行追加15 行削除
  1. 2 15
      resources/assets/components/Post.vue

+ 2 - 15
resources/assets/components/Post.vue

@@ -171,7 +171,7 @@
 			}
 			}
 		},
 		},
 
 
-		beforeMount() {
+		created() {
 			this.init();
 			this.init();
 		},
 		},
 
 
@@ -181,20 +181,7 @@
 
 
 		methods: {
 		methods: {
 			init() {
 			init() {
-				if(this.cachedStatus && this.cachedProfile) {
-					this.post = this.cachedStatus;
-					this.media = this.post.media_attachments;
-					this.profile = this.post.account;
-					this.user = this.cachedProfile;
-					if(this.post.in_reply_to_id) {
-						this.fetchReply();
-					} else {
-						this.isReply = false;
-						this.fetchRelationship();
-					}
-				} else {
-					this.fetchSelf();
-				}
+				this.fetchSelf();
 			},
 			},
 
 
 			fetchSelf() {
 			fetchSelf() {