From 78a4ab98af96320cfaf12ad2e35e818a3886e648 Mon Sep 17 00:00:00 2001
From: taehoon
Date: Tue, 7 May 2019 16:20:24 -0400
Subject: [PATCH] do not regenerate status object
---
src/modules/statuses.js | 8 +++-----
1 file changed, 3 insertions(+), 5 deletions(-)
diff --git a/src/modules/statuses.js b/src/modules/statuses.js
index 1a223d09..48912adc 100644
--- a/src/modules/statuses.js
+++ b/src/modules/statuses.js
@@ -461,11 +461,9 @@ export const mutations = {
state.timelines[timeline].flushMarker = id
},
addFavsAndRepeats (state, { id, favoritedByUsers, rebloggedByUsers }) {
- state.allStatusesObject[id] = {
- ...state.allStatusesObject[id],
- favoritedBy: favoritedByUsers,
- rebloggedBy: rebloggedByUsers
- }
+ const newStatus = state.allStatusesObject[id]
+ newStatus.favoritedBy = favoritedByUsers
+ newStatus.rebloggedBy = rebloggedByUsers
}
}