diff --git a/spec/renderer/integration/store/TimelineSpace/Contents/FollowRequests.spec.ts b/spec/renderer/integration/store/TimelineSpace/Contents/FollowRequests.spec.ts
index 10ba90d4..b17c27f4 100644
--- a/spec/renderer/integration/store/TimelineSpace/Contents/FollowRequests.spec.ts
+++ b/spec/renderer/integration/store/TimelineSpace/Contents/FollowRequests.spec.ts
@@ -101,6 +101,7 @@ const sideMenuState = (): SideMenuState => {
mention: true,
direct: true,
favourite: true,
+ bookmark: true,
local: true,
public: true,
tag: true,
diff --git a/spec/renderer/integration/store/TimelineSpace/SideMenu.spec.ts b/spec/renderer/integration/store/TimelineSpace/SideMenu.spec.ts
index 5a9bd21c..aa29f83d 100644
--- a/spec/renderer/integration/store/TimelineSpace/SideMenu.spec.ts
+++ b/spec/renderer/integration/store/TimelineSpace/SideMenu.spec.ts
@@ -57,6 +57,7 @@ const state = (): SideMenuState => {
mention: true,
direct: true,
favourite: true,
+ bookmark: true,
local: true,
public: true,
tag: true,
diff --git a/src/config/locales/en/translation.json b/src/config/locales/en/translation.json
index 60e2f76b..1da900c7 100644
--- a/src/config/locales/en/translation.json
+++ b/src/config/locales/en/translation.json
@@ -53,6 +53,7 @@
"direct": "Direct messages",
"follow_requests": "Follow Requests",
"favourite": "Favourite",
+ "bookmark": "Bookmark",
"local": "Local timeline",
"public": "Public timeline",
"hashtag": "Hashtag",
diff --git a/src/main/timelines.ts b/src/main/timelines.ts
index b0212cb1..f5d5e6bb 100644
--- a/src/main/timelines.ts
+++ b/src/main/timelines.ts
@@ -12,6 +12,7 @@ const confirm = async (account: LocalAccount, proxy: ProxyConfig | false) => {
mention: true,
direct: true,
favourite: true,
+ bookmark: true,
local: true,
public: true,
tag: true,
@@ -33,6 +34,11 @@ const confirm = async (account: LocalAccount, proxy: ProxyConfig | false) => {
timelines = { ...timelines, favourite: false }
})
}
+ const bookmark = async () => {
+ return client.getBookmarks({ limit: 1 }).catch(() => {
+ timelines = { ...timelines, bookmark: false }
+ })
+ }
const local = async () => {
return client.getLocalTimeline({ limit: 1 }).catch(() => {
timelines = { ...timelines, local: false }
@@ -48,7 +54,7 @@ const confirm = async (account: LocalAccount, proxy: ProxyConfig | false) => {
timelines = { ...timelines, tag: false }
})
}
- await Promise.all([notification(), direct(), favourite(), local(), pub(), tag()])
+ await Promise.all([notification(), direct(), favourite(), bookmark(), local(), pub(), tag()])
return timelines
}
diff --git a/src/renderer/components/TimelineSpace/SideMenu.vue b/src/renderer/components/TimelineSpace/SideMenu.vue
index a8a18f32..e26d7c40 100644
--- a/src/renderer/components/TimelineSpace/SideMenu.vue
+++ b/src/renderer/components/TimelineSpace/SideMenu.vue
@@ -80,6 +80,10 @@
{{ $t('side_menu.favourite') }}
+
+
+ {{ $t('side_menu.bookmark') }}
+
{{ $t('side_menu.local') }}
diff --git a/src/renderer/store/TimelineSpace/SideMenu.ts b/src/renderer/store/TimelineSpace/SideMenu.ts
index 9a4ecd5a..4b125fab 100644
--- a/src/renderer/store/TimelineSpace/SideMenu.ts
+++ b/src/renderer/store/TimelineSpace/SideMenu.ts
@@ -39,6 +39,7 @@ const state = (): SideMenuState => ({
mention: true,
direct: true,
favourite: true,
+ bookmark: true,
local: true,
public: true,
tag: true,
diff --git a/src/types/enabledTimelines.ts b/src/types/enabledTimelines.ts
index 8f3f6f8c..d7b576e8 100644
--- a/src/types/enabledTimelines.ts
+++ b/src/types/enabledTimelines.ts
@@ -4,6 +4,7 @@ export type EnabledTimelines = {
mention: boolean
direct: boolean
favourite: boolean
+ bookmark: boolean
local: boolean
public: boolean
tag: boolean