This commit is contained in:
syuilo
2018-02-18 12:35:18 +09:00
parent 61b95e0c26
commit 99b3499364
103 changed files with 878 additions and 790 deletions

View File

@@ -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;