{#each photos as photo} {@const mediaId = photo.id.replace(/^(media|photo)-/, '')}
{#if showCaptions && photo.caption}
{photo.caption}
{/if}
{/each}