Show 'edited' label if post has been edited

This commit is contained in:
silverpill 2022-05-11 13:41:13 +00:00
parent 24c4949b40
commit 13253a3f19
2 changed files with 2 additions and 0 deletions

View file

@ -50,6 +50,7 @@ export interface Post {
id: string; id: string;
uri: string; uri: string;
created_at: string; created_at: string;
edited_at: string | null;
account: Profile; account: Profile;
content: string; content: string;
in_reply_to_id: string | null; in_reply_to_id: string | null;

View file

@ -30,6 +30,7 @@
> >
<visibility-icon :visibility="post.visibility"></visibility-icon> <visibility-icon :visibility="post.visibility"></visibility-icon>
</span> </span>
<span v-if="post.edited_at">edited</span>
<a <a
class="timestamp" class="timestamp"
:href="post.uri" :href="post.uri"