kopia lustrzana https://github.com/elk-zone/elk
Merge ac208d375a
into 9496ffc3e6
commit
6509e383ab
|
@ -582,6 +582,11 @@ function transformCollapseMentions(status?: mastodon.v1.Status, inReplyToStatus?
|
|||
if (child.type === TEXT_NODE) {
|
||||
trimContentStart = () => {
|
||||
child.value = child.value.trimStart()
|
||||
// remove the comma after the collapsed mention.
|
||||
if (child.value.at(0) === ',') {
|
||||
child.value = child.value.slice(1)
|
||||
child.value = child.value.trimStart()
|
||||
}
|
||||
}
|
||||
}
|
||||
// remove <br> after mention
|
||||
|
|
Ładowanie…
Reference in New Issue