Added previews for videos and audios
This commit is contained in:
parent
4f8d476a2b
commit
6f0c73c30a
2 changed files with 7 additions and 1 deletions
|
@ -4,7 +4,10 @@
|
|||
<img :key="nsfwImage" :src="nsfwImage"></img>
|
||||
</a>
|
||||
|
||||
<a class="image-attachment" v-if="type === 'image' && !nsfw" :href="attachment.url" target="_blank"><img :src="attachment.url"></img></a>
|
||||
<a class="image-attachment" v-if="type === 'image' && !nsfw"
|
||||
:href="attachment.url" target="_blank">
|
||||
<img :src="attachment.url"></img>
|
||||
</a>
|
||||
|
||||
<video v-if="type === 'video' && !nsfw" :src="attachment.url" controls></video>
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue