forked from AkkomaGang/akkoma-fe
Properly detect thread-muted posts and set with_muted
when fetching
notifications
This commit is contained in:
parent
a1aada2454
commit
66a34b7ecf
2 changed files with 6 additions and 1 deletions
|
@ -117,7 +117,7 @@ const Status = {
|
|||
|
||||
return hits
|
||||
},
|
||||
muted () { return !this.unmuted && (this.status.user.muted || this.muteWordHits.length > 0) },
|
||||
muted () { return !this.unmuted && (this.status.muted || this.muteWordHits.length > 0) },
|
||||
hideFilteredStatuses () {
|
||||
return typeof this.$store.state.config.hideFilteredStatuses === 'undefined'
|
||||
? this.$store.state.instance.hideFilteredStatuses
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue