Merge remote-tracking branch 'origin/develop' into setttingssync
This commit is contained in:
commit
53a3c8bcd6
3 changed files with 18 additions and 13 deletions
1
changelog.d/fix-emojis-breaking-bio.fix
Normal file
1
changelog.d/fix-emojis-breaking-bio.fix
Normal file
|
|
@ -0,0 +1 @@
|
|||
Fix emojis breaking user bio/description editing
|
||||
|
|
@ -278,10 +278,10 @@ const PostStatusForm = {
|
|||
})
|
||||
},
|
||||
emoji() {
|
||||
return useEmojiStore().standardEmojiList || []
|
||||
return useEmojiStore().standardEmojiList
|
||||
},
|
||||
customEmoji() {
|
||||
return useEmojiStore().customEmoji || []
|
||||
return useEmojiStore().customEmoji
|
||||
},
|
||||
statusLength() {
|
||||
return this.newStatus.status.length
|
||||
|
|
|
|||
|
|
@ -115,19 +115,23 @@ export const useEmojiStore = defineStore('emoji', {
|
|||
}, {})
|
||||
},
|
||||
standardEmojiList(state) {
|
||||
return SORTED_EMOJI_GROUP_IDS.map((groupId) =>
|
||||
(this.emoji[groupId] || []).map((k) =>
|
||||
injectAnnotations(k, this.unicodeEmojiAnnotations),
|
||||
),
|
||||
).reduce((a, b) => a.concat(b), [])
|
||||
return (
|
||||
SORTED_EMOJI_GROUP_IDS.map((groupId) =>
|
||||
(this.emoji[groupId] || []).map((k) =>
|
||||
injectAnnotations(k, this.unicodeEmojiAnnotations),
|
||||
),
|
||||
).reduce((a, b) => a.concat(b), []) ?? []
|
||||
)
|
||||
},
|
||||
standardEmojiGroupList(state) {
|
||||
return SORTED_EMOJI_GROUP_IDS.map((groupId) => ({
|
||||
id: groupId,
|
||||
emojis: (this.emoji[groupId] || []).map((k) =>
|
||||
injectAnnotations(k, this.unicodeEmojiAnnotations),
|
||||
),
|
||||
}))
|
||||
return (
|
||||
SORTED_EMOJI_GROUP_IDS.map((groupId) => ({
|
||||
id: groupId,
|
||||
emojis: (this.emoji[groupId] || []).map((k) =>
|
||||
injectAnnotations(k, this.unicodeEmojiAnnotations),
|
||||
),
|
||||
})) ?? []
|
||||
)
|
||||
},
|
||||
},
|
||||
actions: {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue