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() { 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)
} }
}, },

View file

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