summaryrefslogtreecommitdiff
path: root/src/client
diff options
context:
space:
mode:
authorMeiMei <30769358+mei23@users.noreply.github.com>2020-04-18 16:05:39 +0900
committerGitHub <noreply@github.com>2020-04-18 16:05:39 +0900
commitf530b5237d1cdec50ebbf6b60470505973fa9225 (patch)
tree0072388562c1a2f7411d7f77d56dc53675639c00 /src/client
parentNew Crowdin translations (#6271) (diff)
downloadmisskey-f530b5237d1cdec50ebbf6b60470505973fa9225.tar.gz
misskey-f530b5237d1cdec50ebbf6b60470505973fa9225.tar.bz2
misskey-f530b5237d1cdec50ebbf6b60470505973fa9225.zip
TLにNote追加時にdeepcopyする (#6275)
Diffstat (limited to 'src/client')
-rw-r--r--src/client/components/timeline.vue3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/client/components/timeline.vue b/src/client/components/timeline.vue
index 234ed6b07c..bd1901a624 100644
--- a/src/client/components/timeline.vue
+++ b/src/client/components/timeline.vue
@@ -50,7 +50,8 @@ export default Vue.extend({
});
const prepend = note => {
- (this.$refs.tl as any).prepend(note);
+ const _note = JSON.parse(JSON.stringify(note)); // deepcopy
+ (this.$refs.tl as any).prepend(_note);
if (this.sound) {
this.$root.sound(note.userId === this.$store.state.i.id ? 'noteMy' : 'note');