JavaScript-optional public web frontend for Bluesky anartia.kelinci.net
sveltekit atcute bluesky typescript svelte
9
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix: interactive relative time on quotes

mary.my.id 11a13c9d a72f480b

verified
+5 -4
+5 -4
src/lib/components/embeds/quote-embed.svelte
··· 36 36 import { base } from '$app/paths'; 37 37 38 38 import { parseAtUri } from '$lib/types/at-uri'; 39 - import { formatRelativeTime } from '$lib/utils/intl/date'; 39 + 40 + import RelativeTime from '$lib/components/islands/relative-time.svelte'; 40 41 41 42 import ImageEmbed from './image-embed.svelte'; 42 43 import VideoEmbed from './video-embed.svelte'; ··· 79 80 80 81 <span aria-hidden="true" class="dot">·</span> 81 82 82 - <time datetime={record.createdAt} class="date"> 83 - {formatRelativeTime(record.createdAt)} 84 - </time> 83 + <span class="date"> 84 + <RelativeTime date={record.createdAt} /> 85 + </span> 85 86 </div> 86 87 87 88 {#if text}