{#if isFuture(publishedAt)}
Ce post n'est pas encore publié
{/if}
{#if authorSrc} {:else} {/if}
{#if hideGroup && author} {author.fullName} {:else if !hideGroup} {group.name} {/if} {#if !hideGroup || author} · {/if} {intlFormatDistance(publishedAt, new Date())} {#if visibility && ![Visibility.Public, Visibility.SchoolRestricted].includes(visibility)} {DISPLAY_VISIBILITIES[visibility]} {/if}

{title}

{bodyPreview}

{#if event}

{event.title}

{event.location}

{formatEventDates( event.frequency, event.startsAt, event.endsAt, event.recurringUntil, )}

{:else if img} {img.alt {/if} {#if links.length > 0} {/if}
{#if likes !== undefined}
{ try { ({ toggleReaction: liked } = await $zeus.mutate({ toggleReaction: [ { articleId: id, emoji: '❤️', }, true, ], })); if (likes !== undefined) likes += liked ? 1 : -1; } catch (error) { toasts.error('Impossible de réagir', error?.toString()); } }} >
{#if liked} {:else} {/if} {likes}
{/if}