fixed rich text names not appearing in boost context

This commit is contained in:
ari melody 2024-06-19 22:55:55 +01:00
parent 0a6c9b5f1e
commit c2356c460f
Signed by: ari
GPG key ID: CF99829C92678188
2 changed files with 2 additions and 2 deletions

View file

@ -36,7 +36,7 @@
}); });
/* /*
client.getPost("9upf5wtam363h1tp", 1).then(post => { client.getPost("", 1).then(post => {
posts = [...posts, post]; posts = [...posts, post];
console.log(post); console.log(post);
}); });

View file

@ -10,7 +10,7 @@
<div class="post-context"> <div class="post-context">
<span class="post-context-icon">🔁</span> <span class="post-context-icon">🔁</span>
<span class="post-context-action"> <span class="post-context-action">
<a href="/{post.user.mention}">{@html parseEmojis(post.user.name)}</a> boosted this post. <a href="/{post.user.mention}">{@html parseEmojis(post.user.rich_name)}</a> boosted this post.
</span> </span>
<span class="post-context-time"> <span class="post-context-time">
<time title="{time_string}">{short_time(post.created_at)}</time> <time title="{time_string}">{short_time(post.created_at)}</time>