From 7e559f95042ad6abab08a452cefa8395c498d1f8 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Sat, 10 Nov 2018 20:55:40 -0700 Subject: [PATCH] Update PostComponent.vue --- resources/assets/js/components/PostComponent.vue | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/resources/assets/js/components/PostComponent.vue b/resources/assets/js/components/PostComponent.vue index 5fff0dd66..311398622 100644 --- a/resources/assets/js/components/PostComponent.vue +++ b/resources/assets/js/components/PostComponent.vue @@ -178,11 +178,11 @@
-
+

@@ -299,8 +299,8 @@ export default { let el = $(v); el.val(token); }); - this.loadLikes(); this.fetchData(); + pixelfed.hydrateLikes(); }, methods: { fetchData() { @@ -365,14 +365,6 @@ export default { $('.postPresenterLoader').addClass('d-none'); $('.postPresenterContainer').removeClass('d-none'); }, - loadLikes() { - let likes = ls.get('likes'); - if(likes.length != 0) { - if(likes.indexOf(this.status.id) == 0) { - $('.far.fa-heart.text-dark').addClass('fas text-danger').removeClass('far text-dark'); - } - } - }, } } \ No newline at end of file