refs #843 fix: Filter mentions to get only mentions for pleroma
This commit is contained in:
parent
f4ea67ff0a
commit
0520b3406a
|
@ -55,7 +55,6 @@ export default {
|
|||
openSideBar: state => state.openSideBar
|
||||
}),
|
||||
...mapState('TimelineSpace/Contents/Mentions', {
|
||||
mentions: state => state.mentions,
|
||||
lazyLoading: state => state.lazyLoading,
|
||||
heading: state => state.heading,
|
||||
unread: state => state.unreadMentions,
|
||||
|
@ -64,6 +63,9 @@ export default {
|
|||
...mapGetters('TimelineSpace/Modals', [
|
||||
'modalOpened'
|
||||
]),
|
||||
...mapGetters('TimelineSpace/Contents/Mentions', [
|
||||
'mentions'
|
||||
]),
|
||||
shortcutEnabled: function () {
|
||||
if (this.modalOpened) {
|
||||
return false
|
||||
|
|
|
@ -90,6 +90,11 @@ const Mentions = {
|
|||
commit('changeLazyLoading', false)
|
||||
})
|
||||
}
|
||||
},
|
||||
getters: {
|
||||
mentions (state) {
|
||||
return state.mentions.filter(mention => mention.type === 'mention')
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue