mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 16:40:24 +08:00 
			
		
		
		
	fix #2804
This commit is contained in:
		@@ -194,6 +194,9 @@ func runWeb(ctx *cli.Context) {
 | 
			
		||||
	// Routers.
 | 
			
		||||
	m.Get("/", ignSignIn, routers.Home)
 | 
			
		||||
	m.Group("/explore", func() {
 | 
			
		||||
		m.Get("", func(ctx *context.Context) {
 | 
			
		||||
			ctx.Redirect(setting.AppSubUrl + "/explore/repos")
 | 
			
		||||
		})
 | 
			
		||||
		m.Get("/repos", routers.ExploreRepos)
 | 
			
		||||
		m.Get("/users", routers.ExploreUsers)
 | 
			
		||||
	}, ignSignIn)
 | 
			
		||||
 
 | 
			
		||||
@@ -39,7 +39,7 @@ type Release struct {
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (r *Release) BeforeInsert() {
 | 
			
		||||
	r.CreatedUnix = r.Created.UTC().Unix()
 | 
			
		||||
	r.CreatedUnix = time.Now().UTC().Unix()
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (r *Release) AfterSet(colName string, _ xorm.Cell) {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user