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