aboutsummaryrefslogtreecommitdiff
path: root/src/services/notifications_fetcher/notifications_fetcher.service.js
diff options
context:
space:
mode:
authorrinpatch <rinpatch@sdf.org>2019-09-04 12:19:39 +0300
committerrinpatch <rinpatch@sdf.org>2019-09-04 12:20:33 +0300
commit66a34b7ecf65ded39882b9e4e7df9bbd2067afc3 (patch)
treee86bc5c95fcc1ff3cf353acad8716e4d91a6c0be /src/services/notifications_fetcher/notifications_fetcher.service.js
parenta1aada245457c02b3cf37055e6f5ca9f08232362 (diff)
Properly detect thread-muted posts and set `with_muted` when fetching
notifications
Diffstat (limited to 'src/services/notifications_fetcher/notifications_fetcher.service.js')
-rw-r--r--src/services/notifications_fetcher/notifications_fetcher.service.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/services/notifications_fetcher/notifications_fetcher.service.js b/src/services/notifications_fetcher/notifications_fetcher.service.js
index f9ec3f6e..b6c4cf80 100644
--- a/src/services/notifications_fetcher/notifications_fetcher.service.js
+++ b/src/services/notifications_fetcher/notifications_fetcher.service.js
@@ -10,6 +10,11 @@ const fetchAndUpdate = ({ store, credentials, older = false }) => {
const args = { credentials }
const rootState = store.rootState || store.state
const timelineData = rootState.statuses.notifications
+ const hideMutedPosts = typeof rootState.config.hideMutedPosts === 'undefined'
+ ? rootState.instance.hideMutedPosts
+ : rootState.config.hideMutedPosts
+
+ args['withMuted'] = !hideMutedPosts
args['timeline'] = 'notifications'
if (older) {