Hawtin Zeng 2024-04-30 01:31:44 +09:00 zatwierdzone przez GitHub
commit 6509e383ab
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: B5690EEEBB952194
1 zmienionych plików z 5 dodań i 0 usunięć

Wyświetl plik

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