Merge remote-tracking branch 'origin/develop' into setttingssync

This commit is contained in:
Henry Jameson 2026-03-11 23:33:50 +02:00
commit 53a3c8bcd6
3 changed files with 18 additions and 13 deletions

View file

@ -0,0 +1 @@
Fix emojis breaking user bio/description editing

View file

@ -278,10 +278,10 @@ const PostStatusForm = {
}) })
}, },
emoji() { emoji() {
return useEmojiStore().standardEmojiList || [] return useEmojiStore().standardEmojiList
}, },
customEmoji() { customEmoji() {
return useEmojiStore().customEmoji || [] return useEmojiStore().customEmoji
}, },
statusLength() { statusLength() {
return this.newStatus.status.length return this.newStatus.status.length

View file

@ -115,19 +115,23 @@ export const useEmojiStore = defineStore('emoji', {
}, {}) }, {})
}, },
standardEmojiList(state) { standardEmojiList(state) {
return SORTED_EMOJI_GROUP_IDS.map((groupId) => return (
(this.emoji[groupId] || []).map((k) => SORTED_EMOJI_GROUP_IDS.map((groupId) =>
injectAnnotations(k, this.unicodeEmojiAnnotations), (this.emoji[groupId] || []).map((k) =>
), injectAnnotations(k, this.unicodeEmojiAnnotations),
).reduce((a, b) => a.concat(b), []) ),
).reduce((a, b) => a.concat(b), []) ?? []
)
}, },
standardEmojiGroupList(state) { standardEmojiGroupList(state) {
return SORTED_EMOJI_GROUP_IDS.map((groupId) => ({ return (
id: groupId, SORTED_EMOJI_GROUP_IDS.map((groupId) => ({
emojis: (this.emoji[groupId] || []).map((k) => id: groupId,
injectAnnotations(k, this.unicodeEmojiAnnotations), emojis: (this.emoji[groupId] || []).map((k) =>
), injectAnnotations(k, this.unicodeEmojiAnnotations),
})) ),
})) ?? []
)
}, },
}, },
actions: { actions: {