rename some of the text functions for clarity

This commit is contained in:
tobi 2025-03-07 11:40:44 +01:00
commit c8556cfd97
16 changed files with 145 additions and 124 deletions

View file

@ -361,10 +361,10 @@ func formatNotificationBody(apiNotification *apimodel.Notification) string {
if apiNotification.Status.SpoilerText != "" {
body = apiNotification.Status.SpoilerText
} else {
body = text.RemoveHTML(apiNotification.Status.Content)
body = text.StripHTMLFromText(apiNotification.Status.Content)
}
} else {
body = text.RemoveHTML(apiNotification.Account.Note)
body = text.StripHTMLFromText(apiNotification.Account.Note)
}
return firstNBytesTrimSpace(body, bodyMaxLen)
}