diff --git a/resources/assets/js/components/PostComponent.vue b/resources/assets/js/components/PostComponent.vue index 03790913e..9499cd8df 100644 --- a/resources/assets/js/components/PostComponent.vue +++ b/resources/assets/js/components/PostComponent.vue @@ -125,7 +125,7 @@

{{statusUsername}} - +


@@ -953,7 +953,8 @@ export default { }) } ] - } + }, + content: undefined } }, watch: { @@ -1027,6 +1028,11 @@ export default { } self.status = response.data.status; self.media = self.status.media_attachments; + self.content = response.data.status.content; + self.status.emojis.forEach(function(emoji) { + let img = `${emoji.shortcode}`; + self.content = self.content.replace(`:${emoji.shortcode}:`, img); + }); self.likesPage = 2; self.sharesPage = 2; self.showCaption = !response.data.status.sensitive; diff --git a/resources/assets/js/components/partials/StatusCard.vue b/resources/assets/js/components/partials/StatusCard.vue index 4d2422e4d..0b60723b2 100644 --- a/resources/assets/js/components/partials/StatusCard.vue +++ b/resources/assets/js/components/partials/StatusCard.vue @@ -160,7 +160,7 @@ {{status.account.username}} - +

@@ -241,11 +241,18 @@ replyText: '', replyNsfw: false, emoji: window.App.util.emoji, + content: undefined } }, mounted() { + let self = this; this.profile = window._sharedData.curUser; + this.content = this.status.content; + this.status.emojis.forEach(function(emoji) { + let img = `${emoji.shortcode}`; + self.content = self.content.replace(`:${emoji.shortcode}:`, img); + }); }, methods: {