Use a better way to clone the original status

This commit is contained in:
Sean King 2022-06-26 17:41:21 -06:00 committed by Sol Fisher Romanoff
parent 4e68c1ca13
commit a25d7fa276
Signed by untrusted user who does not match committer: nbsp
GPG Key ID: 9D3F2B64F2341B62
1 changed files with 1 additions and 2 deletions

View File

@ -88,8 +88,7 @@ const ExtraButtons = {
}))
},
showStatusHistory () {
let originalStatus = {}
Object.assign(originalStatus, this.status)
let originalStatus = { ...this.status }
delete originalStatus.attachments
delete originalStatus.created_at
delete originalStatus.emojis