Merge branch 'tusooa/1266-reload-user-pinned' into 'develop'

Fix pinned statuses gone when reloading user timeline

Closes #1266

See merge request pleroma/pleroma-fe!1847
This commit is contained in:
HJ 2023-08-22 20:37:48 +00:00
commit d8d2507303
2 changed files with 4 additions and 0 deletions

View File

@ -0,0 +1 @@
Fix pinned statuses gone when reloading user timeline

View File

@ -160,6 +160,9 @@ const Timeline = {
if (this.timeline.flushMarker !== 0) { if (this.timeline.flushMarker !== 0) {
this.$store.commit('clearTimeline', { timeline: this.timelineName, excludeUserId: true }) this.$store.commit('clearTimeline', { timeline: this.timelineName, excludeUserId: true })
this.$store.commit('queueFlush', { timeline: this.timelineName, id: 0 }) this.$store.commit('queueFlush', { timeline: this.timelineName, id: 0 })
if (this.timelineName === 'user') {
this.$store.dispatch('fetchPinnedStatuses', this.userId)
}
this.fetchOlderStatuses() this.fetchOlderStatuses()
} else { } else {
this.blockClicksTemporarily() this.blockClicksTemporarily()