diff --git a/components/social-elements/notes/header.vue b/components/social-elements/notes/header.vue
index 3977811..a4d5d09 100644
--- a/components/social-elements/notes/header.vue
+++ b/components/social-elements/notes/header.vue
@@ -9,8 +9,7 @@
- {{
- note?.account.display_name }}
+ {{ note?.account.display_name }}
@@ -33,36 +32,43 @@
- {{
- note?.account.display_name }}
+ {{ note?.account.display_name }}
-
-
- {{ timeAgo }}
-
+
+
+ {{ visibilities[note.visibility].text }}
-
-
-
- @{{
- note?.account.acct
- }}
-
-
- Click to copy
-
-
-
- Copied!
-
-
-
+
+
+
+
+ @{{ username }}{{ instance && "@" }}{{ instance }}
+ ·
+
+ {{ timeAgo }}
+
+
+
+
+
+ Click to copy
+
+
+
+ Copied!
+
+
+
+
@@ -78,9 +84,12 @@ const props = defineProps<{
small?: boolean;
}>();
+const username = props.note?.account.acct.split("@")[0];
+const instance = props.note?.account.acct.split("@")[1];
+
const noteUrl = props.note && `/@${props.note.account.acct}/${props.note.id}`;
const accountUrl = props.note && `/@${props.note.account.acct}`;
-const timeAgo = useTimeAgo(props.note?.created_at ?? 0);
+const timeAgo = useTimeAgo(props.note?.created_at ?? 0, {});
const fullTime = Intl.DateTimeFormat("default", {
dateStyle: "medium",
timeStyle: "short",
@@ -97,4 +106,23 @@ const copyAccount = () => {
}, 2000);
}
};
+
+const visibilities = {
+ public: {
+ icon: "tabler:world",
+ text: "This note is public: it can be seen by anyone.",
+ },
+ unlisted: {
+ icon: "tabler:lock-open",
+ text: "This note is unlisted: it can be seen by anyone with the link.",
+ },
+ private: {
+ icon: "tabler:lock",
+ text: "This note is private: it can only be seen by followers.",
+ },
+ direct: {
+ icon: "tabler:mail",
+ text: "This note is direct: it can only be seen by mentioned users.",
+ },
+};
\ No newline at end of file
diff --git a/components/social-elements/notes/interactions/row.vue b/components/social-elements/notes/interactions/row.vue
index a84b016..94f1603 100644
--- a/components/social-elements/notes/interactions/row.vue
+++ b/components/social-elements/notes/interactions/row.vue
@@ -5,27 +5,26 @@
:disabled="!identity">