mirror of
https://github.com/go-gitea/gitea.git
synced 2026-05-12 04:43:32 +02:00
add .org to WebPathToUserTitle
This commit is contained in:
parent
3ae4823383
commit
676a7856ac
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user