返信先プレビューなどではURLプレビューを表示しないように

This commit is contained in:
syuilo 2018-03-30 18:48:51 +09:00
parent d89b97a771
commit 1af9efe54e

View File

@ -4,7 +4,6 @@
<a class="reply" v-if="post.replyId">%fa:reply%</a>
<mk-post-html :ast="post.ast" :i="os.i"/>
<a class="rp" v-if="post.repostId" :href="`/post:${post.repostId}`">RP: ...</a>
<mk-url-preview v-for="url in urls" :url="url" :key="url"/>
</div>
<details v-if="post.media">
<summary>({{ post.media.length }}つのメディア)</summary>
@ -21,18 +20,7 @@
import Vue from 'vue';
export default Vue.extend({
props: ['post'],
computed: {
urls(): string[] {
if (this.post.ast) {
return this.post.ast
.filter(t => (t.type == 'url' || t.type == 'link') && !t.silent)
.map(t => t.url);
} else {
return null;
}
}
}
props: ['post']
});
</script>