wip
This commit is contained in:
@@ -35,7 +35,7 @@
|
||||
</a>
|
||||
</header>
|
||||
<div class="body">
|
||||
<mk-post-html v-if="p.ast" :ast="p.ast" :i="$root.$data.os.i"/>
|
||||
<mk-post-html v-if="p.ast" :ast="p.ast" :i="os.i"/>
|
||||
<mk-url-preview v-for="url in urls" :url="url" :key="url"/>
|
||||
<div class="media" v-if="p.media">
|
||||
<mk-images images={ p.media }/>
|
||||
@@ -117,7 +117,7 @@ export default Vue.extend({
|
||||
mounted() {
|
||||
// Get replies
|
||||
if (!this.compact) {
|
||||
this.$root.$data.os.api('posts/replies', {
|
||||
(this as any).api('posts/replies', {
|
||||
post_id: this.p.id,
|
||||
limit: 8
|
||||
}).then(replies => {
|
||||
@@ -130,7 +130,7 @@ export default Vue.extend({
|
||||
this.contextFetching = true;
|
||||
|
||||
// Fetch context
|
||||
this.$root.$data.os.api('posts/context', {
|
||||
(this as any).api('posts/context', {
|
||||
post_id: this.p.reply_id
|
||||
}).then(context => {
|
||||
this.contextFetching = false;
|
||||
|
Reference in New Issue
Block a user