diff options
| author | MeiMei <30769358+mei23@users.noreply.github.com> | 2020-04-18 16:05:39 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-04-18 16:05:39 +0900 |
| commit | f530b5237d1cdec50ebbf6b60470505973fa9225 (patch) | |
| tree | 0072388562c1a2f7411d7f77d56dc53675639c00 /src | |
| parent | New Crowdin translations (#6271) (diff) | |
| download | misskey-f530b5237d1cdec50ebbf6b60470505973fa9225.tar.gz misskey-f530b5237d1cdec50ebbf6b60470505973fa9225.tar.bz2 misskey-f530b5237d1cdec50ebbf6b60470505973fa9225.zip | |
TLにNote追加時にdeepcopyする (#6275)
Diffstat (limited to 'src')
| -rw-r--r-- | src/client/components/timeline.vue | 3 |
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'); |