mirror of
https://github.com/go-gitea/gitea.git
synced 2026-08-03 02:33:29 +02:00
add .org to WebPathToUserTitle
This commit is contained in:
@@ -139,6 +139,9 @@ func WebPathToUserTitle(s WebPath) (dir, display string) {
|
||||
if before, ok := strings.CutSuffix(display, ".md"); ok {
|
||||
display = before
|
||||
display, _ = url.PathUnescape(display)
|
||||
} else if strings.HasSuffix(display, ".org") {
|
||||
display = strings.TrimSuffix(display, ".org")
|
||||
display, _ = url.PathUnescape(display)
|
||||
}
|
||||
display, _ = unescapeSegment(display)
|
||||
return dir, display
|
||||
|
||||
Reference in New Issue
Block a user