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() {
|
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
|
||||||
|
|
|
||||||
|
|
@ -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: {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue