added gifv attachment support
This commit is contained in:
		
							parent
							
								
									7ecd92fbed
								
							
						
					
					
						commit
						891aa09467
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -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> | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue