diff options
| author | HJ <30-hj@users.noreply.git.pleroma.social> | 2019-06-24 22:08:09 +0000 |
|---|---|---|
| committer | HJ <30-hj@users.noreply.git.pleroma.social> | 2019-06-24 22:08:09 +0000 |
| commit | bb8e2b193342032c2c73b3d7bf1f1ac703afaae1 (patch) | |
| tree | d46f17916d81a289e715bc30ab0e06576bfbbbf8 | |
| parent | 05aec11906c136a79b8661ec13b10668a5b6e2bf (diff) | |
| parent | 7a5d06a6cf02e9df82d5479e27a86c26507ace58 (diff) | |
Merge branch 'timeline-skip-fix' into 'develop'
timeline-skip-fix
See merge request pleroma/pleroma-fe!850
| -rw-r--r-- | src/modules/statuses.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/modules/statuses.js b/src/modules/statuses.js index 235098d3..9b11a13e 100644 --- a/src/modules/statuses.js +++ b/src/modules/statuses.js @@ -146,7 +146,8 @@ const removeStatusFromGlobalStorage = (state, status) => { } } -const addNewStatuses = (state, { statuses, showImmediately = false, timeline, user = {}, noIdUpdate = false, userId }) => { +const addNewStatuses = (state, { statuses, showImmediately = false, timeline, user = {}, + noIdUpdate = false, userId }) => { // Sanity check if (!isArray(statuses)) { return false @@ -543,7 +544,7 @@ const statuses = { }, fetchPinnedStatuses ({ rootState, dispatch }, userId) { rootState.api.backendInteractor.fetchPinnedStatuses(userId) - .then(statuses => dispatch('addNewStatuses', { statuses, timeline: 'user', userId, showImmediately: true })) + .then(statuses => dispatch('addNewStatuses', { statuses, timeline: 'user', userId, showImmediately: true, noIdUpdate: true })) }, pinStatus ({ rootState, commit }, statusId) { return rootState.api.backendInteractor.pinOwnStatus(statusId) |
