From d00031d9d35cd50239d981a8c9e321a41721165a Mon Sep 17 00:00:00 2001
From: AkiraFukushima
Date: Sun, 25 Oct 2020 22:52:21 +0900
Subject: [PATCH] refs #1804 Fix exclude replies timeline in sidebar
---
.../Contents/SideBar/AccountProfile/Timeline/Posts.ts | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/src/renderer/store/TimelineSpace/Contents/SideBar/AccountProfile/Timeline/Posts.ts b/src/renderer/store/TimelineSpace/Contents/SideBar/AccountProfile/Timeline/Posts.ts
index e2259174..da2d647a 100644
--- a/src/renderer/store/TimelineSpace/Contents/SideBar/AccountProfile/Timeline/Posts.ts
+++ b/src/renderer/store/TimelineSpace/Contents/SideBar/AccountProfile/Timeline/Posts.ts
@@ -91,9 +91,9 @@ const actions: ActionTree = {
rootState.TimelineSpace.account.accessToken,
rootState.App.userAgent
)
- const pinned = await client.getAccountStatuses(account.id, { pinned: true, limit: 10, exclude_replies: true })
+ const pinned = await client.getAccountStatuses(account.id, { pinned: true, limit: 10 })
commit(MUTATION_TYPES.UPDATE_PINNED_TOOTS, pinned.data)
- const res = await client.getAccountStatuses(account.id, { limit: 40, pinned: false })
+ const res = await client.getAccountStatuses(account.id, { limit: 40, pinned: false, exclude_replies: true })
commit('TimelineSpace/Contents/SideBar/AccountProfile/changeLoading', false, { root: true })
commit(MUTATION_TYPES.UPDATE_TIMELINE, res.data)
return res.data
@@ -113,7 +113,8 @@ const actions: ActionTree = {
const res = await client.getAccountStatuses(loadPosition.account.id, {
max_id: loadPosition.status.id,
limit: 40,
- pinned: false
+ pinned: false,
+ exclude_replies: true
})
commit(MUTATION_TYPES.INSERT_TIMELINE, res.data)
} finally {