logo

pleroma-fe

My custom branche(s) on git.pleroma.social/pleroma/pleroma-fe git clone https://hacktivis.me/git/pleroma-fe.git
commit: d8d2507303812961f33f6f7bb3d198d4cc6cc5d0
parent cc0a63736a159bc03b77bbd4c62a684d1294e3d2
Author: HJ <30-hj@users.noreply.git.pleroma.social>
Date:   Tue, 22 Aug 2023 20:37:48 +0000

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

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()