Browse Source

Ellipsize long webmention titles

master
Jan-Lukas Else 1 month ago
parent
commit
93f512dd40
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      webmentionVerification.go

+ 3
- 0
webmentionVerification.go View File

@ -83,6 +83,9 @@ func (m *mention) verifyMention() error {
if len(m.Content) > 500 {
m.Content = m.Content[0:497] + "…"
}
if len(m.Title) > 60 {
m.Title = m.Title[0:57] + "…"
}
newStatus := webmentionStatusVerified
if strings.HasPrefix(m.Source, appConfig.Server.PublicAddress) {
// Approve if it's server-intern


Loading…
Cancel
Save