fix dms timeline pollution

This commit is contained in:
Henry Jameson 2026-08-14 17:51:43 +03:00
commit 05e5f8e966

View file

@ -84,6 +84,7 @@ export const useTimelinesStore = defineStore('timelines', {
timelineName === 'favourites' && timelineName === 'favourites' &&
!useInstanceCapabilitiesStore().pleromaPublicFavouritesAvailable !useInstanceCapabilitiesStore().pleromaPublicFavouritesAvailable
) { ) {
console.warn('Instance doesn\'t support public favorites timeline')
return return
} }
@ -218,7 +219,7 @@ export const useTimelinesStore = defineStore('timelines', {
// Add the mention to the mentions timeline // Add the mention to the mentions timeline
if (timeline !== this.mentions) { if (timeline !== this.mentions) {
this.addStatusesToTimeline('mentions', null, { this.addStatusesToTimeline('mentions', null, {
statuses, statuses: [status],
nested: true, nested: true,
}) })
} }
@ -226,7 +227,7 @@ export const useTimelinesStore = defineStore('timelines', {
if (status.visibility === 'direct') { if (status.visibility === 'direct') {
if (timeline !== this.dms) { if (timeline !== this.dms) {
this.addStatusesToTimeline('dms', null, { statuses, nested: true }) this.addStatusesToTimeline('dms', null, { statuses: [status], nested: true })
} }
} }
}) })