{#if attachments.length > 0}
{#each attachments as media (media.id)}
{#if media.type === 'video' || media.type === 'gifv'}
{:else if media.type === 'audio'}
{:else if media.type === 'image'}
{:else}
Attachment
{/if} {#if media.description}
{/if}
{#if sensitive}
toggle(media.id)}> {isRevealed(media.id) ? 'Hide' : 'Show'} sensitive media
{/if}
{/each}
{/if}