mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-11-10 13:07:30 -06:00
rename some of the text functions for clarity
This commit is contained in:
parent
a05d4bac53
commit
c8556cfd97
16 changed files with 145 additions and 124 deletions
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue