added gifv attachment support

This commit is contained in:
ari melody 2024-07-01 04:27:57 +01:00
parent 7ecd92fbed
commit 891aa09467
Signed by: ari
GPG key ID: CF99829C92678188

View file

@ -29,7 +29,7 @@
<div class="post-media-container" data-count={post.files.length}>
{#each post.files as file}
<div class="post-media {file.type}" on:click|stopPropagation on:mouseup|stopPropagation>
{#if file.type === "image"}
{#if ["image", "gifv", "gif"].includes(file.type)}
<a href={file.url} target="_blank">
<img src={file.url} alt={file.description} title={file.description} height="200" loading="lazy" decoding="async">
</a>