Updated dependencies

This commit is contained in:
2021-11-19 00:08:59 +09:00
parent 65823bca01
commit 0dbbd9e621
6 changed files with 301 additions and 224 deletions

View File

@ -87,7 +87,7 @@ func AccountNick(nick string) string {
// PostText fixes common mistakes in post texts.
func PostText(text string) string {
text = strings.Replace(text, "http://", "https://", -1)
text = strings.ReplaceAll(text, "http://", "https://")
text = strings.TrimSpace(text)
return text
}