aboutsummaryrefslogtreecommitdiff
path: root/src/services/notifications_fetcher/notifications_fetcher.service.js
diff options
context:
space:
mode:
authorMaksim Pechnikov <parallel588@gmail.com>2019-09-26 21:14:31 +0300
committerMaksim Pechnikov <parallel588@gmail.com>2019-09-26 21:14:31 +0300
commit19cb98b85fc071dccd88bcdddff75d99cd4d944d (patch)
treea99d9ed2ab174eea4533146b8f97c6bde9170eae /src/services/notifications_fetcher/notifications_fetcher.service.js
parentc02433b7e69d4e19be50cb513327a8985f262998 (diff)
parent501208d350a9bd0fbcafb13d70a2fa6182fb8cf3 (diff)
Merge branch 'develop' into feature/following_reblogs
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) {