diff options
author | Jonas Sulzer <jonas@violoncello.ch> | 2019-05-29 23:35:30 +0200 |
---|---|---|
committer | Jonas Sulzer <jonas@violoncello.ch> | 2019-05-29 23:35:30 +0200 |
commit | c5f9828788769b7ad795fc1bed9554a9388b06da (patch) | |
tree | f0fcf9055da6ea5c6ff35789fab968e4e7ea5d99 /src/store | |
parent | dad67f6de04e1af8506a26beba95c1a58c2be547 (diff) |
🐛 FIX: correctly toggle boosted state when boosting an Announce
Signed-off-by: Jonas Sulzer <jonas@violoncello.ch>
Diffstat (limited to 'src/store')
-rw-r--r-- | src/store/timeline.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/store/timeline.js b/src/store/timeline.js index 5144a6bd..b532ab86 100644 --- a/src/store/timeline.js +++ b/src/store/timeline.js @@ -59,7 +59,7 @@ const mutations = { Vue.set(state.timeline[post.id].action.values, 'boosted', true) } if (parentAnnounce) { - Vue.set(state.timeline[parentAnnounce.id].cache[parentAnnounce.object].action.values, 'boosted', true) + Vue.set(state.timeline[parentAnnounce.id].cache[parentAnnounce.object].object.action.values, 'boosted', true) } }, unboostPost(state, { post, parentAnnounce }) { @@ -67,7 +67,7 @@ const mutations = { Vue.set(state.timeline[post.id].action.values, 'boosted', false) } if (parentAnnounce) { - Vue.set(state.timeline[parentAnnounce.id].cache[parentAnnounce.object].action.values, 'boosted', false) + Vue.set(state.timeline[parentAnnounce.id].cache[parentAnnounce.object].object.action.values, 'boosted', false) } } } |