diff options
| author | tusooa <tusooa@kazv.moe> | 2023-07-18 19:06:00 -0400 |
|---|---|---|
| committer | tusooa <tusooa@kazv.moe> | 2023-07-18 19:06:00 -0400 |
| commit | 35d3b8f27dace6efd5aab8915b2025d16bb7e7e7 (patch) | |
| tree | ef225f8c75900e5f74634eec5a5452fb45f2d530 | |
| parent | 510392e4ca67fee4bf6fed9346f1ff708966e734 (diff) | |
Fix pinned statuses gone when reloading user timeline
| -rw-r--r-- | changelog.d/reload-user-pinned.fix | 1 | ||||
| -rw-r--r-- | src/components/timeline/timeline.js | 3 |
2 files changed, 4 insertions, 0 deletions
diff --git a/changelog.d/reload-user-pinned.fix b/changelog.d/reload-user-pinned.fix new file mode 100644 index 00000000..db241c20 --- /dev/null +++ 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 index b7414610..1050b87a 100644 --- 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() |
