fix status action buttons not updating state
This commit is contained in:
parent
a9c0edc92e
commit
f8ef76811e
1 changed files with 4 additions and 1 deletions
|
|
@ -136,6 +136,9 @@ const Status = {
|
||||||
status() {
|
status() {
|
||||||
return this.statusoid ?? useStatusesStore().allStatuses.get(this.statusId)
|
return this.statusoid ?? useStatusesStore().allStatuses.get(this.statusId)
|
||||||
},
|
},
|
||||||
|
retweetedStatus() {
|
||||||
|
return useStatusesStore().allStatuses.get(this.status.retweeted_status.id)
|
||||||
|
},
|
||||||
repeater() {
|
repeater() {
|
||||||
return useUsersStore().findUser(this.status.user.id)
|
return useUsersStore().findUser(this.status.user.id)
|
||||||
},
|
},
|
||||||
|
|
@ -205,7 +208,7 @@ const Status = {
|
||||||
},
|
},
|
||||||
mainStatus() {
|
mainStatus() {
|
||||||
if (this.retweet) {
|
if (this.retweet) {
|
||||||
return this.status.retweeted_status
|
return this.retweetedStatus
|
||||||
} else {
|
} else {
|
||||||
return this.status
|
return this.status
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue