diff --git a/components/nav/NavSide.vue b/components/nav/NavSide.vue
index fa736904..1c3ae571 100644
--- a/components/nav/NavSide.vue
+++ b/components/nav/NavSide.vue
@@ -32,8 +32,8 @@
Favorites
-
-
+
+
Bookmarks
diff --git a/components/status/StatusActions.vue b/components/status/StatusActions.vue
index 1e29d27d..743263f6 100644
--- a/components/status/StatusActions.vue
+++ b/components/status/StatusActions.vue
@@ -19,6 +19,17 @@ async function toggleFavourite() {
isLoading.value = false
}
}
+
+async function toggleBookmark() {
+ try {
+ isLoading.value = true
+ const action = status.bookmarked ? 'unbookmark' : 'bookmark'
+ Object.assign(status, await masto.statuses[action](status.id))
+ }
+ finally {
+ isLoading.value = false
+ }
+}
@@ -45,6 +56,15 @@ async function toggleFavourite() {
{{ status.favouritesCount }}
+