This commit is contained in:
Henry Jameson 2026-08-28 15:38:44 +03:00
commit d64821e93b
2 changed files with 7 additions and 14 deletions

View file

@ -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)
}
},

View file

@ -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