2024-06-17 21:17:27 +01:00
|
|
|
<script>
|
2024-06-19 22:13:16 +01:00
|
|
|
import { parseText as parseEmojis } from '../emoji.js';
|
2024-06-17 21:17:27 +01:00
|
|
|
import { shorthand as short_time } from '../time.js';
|
|
|
|
|
|
|
|
export let post;
|
|
|
|
|
|
|
|
let time_string = post.created_at.toLocaleString();
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<div class="post-context">
|
|
|
|
<span class="post-context-icon">🔁</span>
|
|
|
|
<span class="post-context-action">
|
2024-06-21 06:52:34 +01:00
|
|
|
<a href={post.user.url} target="_blank">{@html parseEmojis(post.user.rich_name)}</a> boosted this post.
|
2024-06-17 21:17:27 +01:00
|
|
|
</span>
|
|
|
|
<span class="post-context-time">
|
|
|
|
<time title="{time_string}">{short_time(post.created_at)}</time>
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<style>
|
|
|
|
.post-context {
|
|
|
|
margin-bottom: 8px;
|
|
|
|
padding-left: 58px;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
align-items: center;
|
|
|
|
color: var(--accent);
|
|
|
|
opacity: .8;
|
|
|
|
transition: opacity .1s;
|
|
|
|
}
|
|
|
|
|
|
|
|
.post-context-icon {
|
|
|
|
margin-right: 4px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.post-context a,
|
|
|
|
.post-context a:visited {
|
|
|
|
color: inherit;
|
|
|
|
text-decoration: none;
|
|
|
|
}
|
|
|
|
.post-context a:hover {
|
|
|
|
text-decoration: underline;
|
|
|
|
}
|
|
|
|
|
|
|
|
.post-context-time {
|
|
|
|
margin-left: auto;
|
|
|
|
}
|
|
|
|
</style>
|