diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2018-03-30 18:48:51 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2018-03-30 18:48:51 +0900 |
| commit | 1af9efe54ea2fb5b9f8a2ead1b089ca1670f53f6 (patch) | |
| tree | 4c3477003403e84099cf6f236f61cb79930fc8aa | |
| parent | Update dependencies :rocket: (diff) | |
| download | sharkey-1af9efe54ea2fb5b9f8a2ead1b089ca1670f53f6.tar.gz sharkey-1af9efe54ea2fb5b9f8a2ead1b089ca1670f53f6.tar.bz2 sharkey-1af9efe54ea2fb5b9f8a2ead1b089ca1670f53f6.zip | |
返信先プレビューなどではURLプレビューを表示しないように
| -rw-r--r-- | src/client/app/desktop/views/components/sub-post-content.vue | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/src/client/app/desktop/views/components/sub-post-content.vue b/src/client/app/desktop/views/components/sub-post-content.vue index f13822331b..a79e5e0a4e 100644 --- a/src/client/app/desktop/views/components/sub-post-content.vue +++ b/src/client/app/desktop/views/components/sub-post-content.vue @@ -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> |