0
0
mirror of https://github.com/go-gitea/gitea.git synced 2026-04-05 20:44:42 +02:00
☙◦ The Tablet ❀ GamerGirlandCo ◦❧ ca46f0ebb2
fix integration test api urls
2026-04-02 20:01:05 -04:00

19 lines
272 B
Go

package integration
import "fmt"
func maybeGroupSegment(gid int64) string {
if gid > 0 {
return fmt.Sprintf("%d/", gid)
}
return ""
}
func maybeWebGroupSegment(gid int64) string {
gs := maybeGroupSegment(gid)
if gs != "" {
return "group/" + gs
}
return ""
}