diff --git a/src/components/DistanceDate.svelte b/src/components/DistanceDate.svelte new file mode 100644 index 0000000..0c48afe --- /dev/null +++ b/src/components/DistanceDate.svelte @@ -0,0 +1,24 @@ + + + + + + diff --git a/src/components/Queue.svelte b/src/components/Queue.svelte index d432a0e..d98b358 100644 --- a/src/components/Queue.svelte +++ b/src/components/Queue.svelte @@ -4,7 +4,7 @@ {#if $next}
select($next)}>
{$next.title}
-
by {$next.referer.username}
+
shared by {$next.referer.username}
{/if} @@ -18,13 +18,14 @@ {#each history as track}
select(track)}>
{track.title}
-
shared by {track.referer.username}
+
shared by {track.referer.username}
{/each} diff --git a/src/services/mastodon.js b/src/services/mastodon.js index b4f5ae2..d72311b 100644 --- a/src/services/mastodon.js +++ b/src/services/mastodon.js @@ -97,7 +97,7 @@ export async function* hashtagsIterator (domain, hashtags) { const processStatus = (domain, status) => ({ title: '', - date: new Date(status.createdAt), + date: new Date(status.created_at), referer: { username: status.account.username, url: status.url,