Merge branch 'users-statuses-pinia' into shigusegubu-themes3

This commit is contained in:
Henry Jameson 2026-08-21 00:14:05 +03:00
commit 83dc6b50a3
2 changed files with 13 additions and 3 deletions

View file

@ -432,13 +432,13 @@ const Status = {
return useInstanceCapabilitiesStore().editingAvailable return useInstanceCapabilitiesStore().editingAvailable
}, },
quoteId() { quoteId() {
return this.status.quote_id return this.mainStatus.quote_id
}, },
quoteUrl() { quoteUrl() {
return this.status.quote_url return this.mainStatus.quote_url
}, },
quoteVisible() { quoteVisible() {
return this.status.quote_visible return this.mainStatus.quote_visible
}, },
quoteExpanded() { quoteExpanded() {
return !this.inQuote return !this.inQuote

View file

@ -149,6 +149,16 @@ export const useTimelinesStore = defineStore('timelines', {
this[timelineName] = emptyTl(timelineName) this[timelineName] = emptyTl(timelineName)
}, },
clearTimeline(timelineName) {
const timeline = this[timelineName]
timeline.order = []
timeline.statusIds = new Set()
timeline.visibleStatusIds = new Set()
timeline.newStatusCount = 0
timeline.maxId = ''
timeline.minId = ''
},
activatePersistents() { activatePersistents() {
TIMELINES.forEach((name) => { TIMELINES.forEach((name) => {
if (this[name].persistent) { if (this[name].persistent) {