lint
This commit is contained in:
parent
5854b222bd
commit
d64821e93b
2 changed files with 7 additions and 14 deletions
|
|
@ -388,10 +388,7 @@ const Status = {
|
|||
}
|
||||
},
|
||||
combinedFavsAndRepeatsUsers() {
|
||||
return new Set([
|
||||
...this.favoritedBy,
|
||||
...this.repeatedBy,
|
||||
])
|
||||
return new Set([...this.favoritedBy, ...this.repeatedBy])
|
||||
},
|
||||
tags() {
|
||||
return [...this.status.tags]
|
||||
|
|
@ -589,19 +586,13 @@ const Status = {
|
|||
},
|
||||
'mainStatus.repeat_num': function (num) {
|
||||
// refetch repeats when repeat_num is changed in any way
|
||||
if (
|
||||
this.focused &&
|
||||
this.repeatedBy.size !== num
|
||||
) {
|
||||
if (this.focused && this.repeatedBy.size !== num) {
|
||||
useStatusesStore().fetchRepeats(this.mainStatus.id)
|
||||
}
|
||||
},
|
||||
'mainStatus.fave_num': function (num) {
|
||||
// refetch favs when fave_num is changed in any way
|
||||
if (
|
||||
this.focused &&
|
||||
this.favoritedBy.size !== num
|
||||
) {
|
||||
if (this.focused && this.favoritedBy.size !== num) {
|
||||
useStatusesStore().fetchFavs(this.mainStatus.id)
|
||||
}
|
||||
},
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@ library.add(faCircleNotch)
|
|||
const UserListPopover = {
|
||||
name: 'UserListPopover',
|
||||
props: {
|
||||
userIds: Set
|
||||
userIds: Set,
|
||||
},
|
||||
components: {
|
||||
UnicodeDomainIndicator,
|
||||
|
|
@ -25,7 +25,9 @@ const UserListPopover = {
|
|||
},
|
||||
computed: {
|
||||
usersCapped() {
|
||||
return [...this.userIds].slice(0, 16).map((id) => useUsersStore().findUser(id))
|
||||
return [...this.userIds]
|
||||
.slice(0, 16)
|
||||
.map((id) => useUsersStore().findUser(id))
|
||||
},
|
||||
allowNonSquareEmoji() {
|
||||
return useMergedConfigStore().mergedConfig.nonSquareEmoji
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue