logo

pleroma-fe

My custom branche(s) on git.pleroma.social/pleroma/pleroma-fe git clone https://hacktivis.me/git/pleroma-fe.git
commit: 35d3b8f27dace6efd5aab8915b2025d16bb7e7e7
parent 510392e4ca67fee4bf6fed9346f1ff708966e734
Author: tusooa <tusooa@kazv.moe>
Date:   Tue, 18 Jul 2023 19:06:00 -0400

Fix pinned statuses gone when reloading user timeline

Diffstat:

Achangelog.d/reload-user-pinned.fix1+
Msrc/components/timeline/timeline.js3+++
2 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/changelog.d/reload-user-pinned.fix b/changelog.d/reload-user-pinned.fix @@ -0,0 +1 @@ +Fix pinned statuses gone when reloading user timeline diff --git a/src/components/timeline/timeline.js b/src/components/timeline/timeline.js @@ -160,6 +160,9 @@ const Timeline = { if (this.timeline.flushMarker !== 0) { this.$store.commit('clearTimeline', { timeline: this.timelineName, excludeUserId: true }) this.$store.commit('queueFlush', { timeline: this.timelineName, id: 0 }) + if (this.timelineName === 'user') { + this.$store.dispatch('fetchPinnedStatuses', this.userId) + } this.fetchOlderStatuses() } else { this.blockClicksTemporarily()