summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2020-04-18 18:33:50 +0900
committersyuilo <syuilotan@yahoo.co.jp>2020-04-18 18:33:50 +0900
commit3b6dbd6dc3ec27d95d303bf43cb18f1780d47678 (patch)
tree8ca6fdf4149eed05da29d99142f8f1bcbeff310f /src
parentResolve #6274 (diff)
parentTLにNote追加時にdeepcopyする (#6275) (diff)
downloadmisskey-3b6dbd6dc3ec27d95d303bf43cb18f1780d47678.tar.gz
misskey-3b6dbd6dc3ec27d95d303bf43cb18f1780d47678.tar.bz2
misskey-3b6dbd6dc3ec27d95d303bf43cb18f1780d47678.zip
Merge branch 'develop' of https://github.com/syuilo/misskey into develop
Diffstat (limited to 'src')
-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');