mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 08:30:25 +08:00 
			
		
		
		
	Merge branch 'master' of github.com:gogits/gogs
This commit is contained in:
		@@ -264,7 +264,7 @@ func GetRepositoryById(id int64) (repo *Repository, err error) {
 | 
			
		||||
// GetRepositories returns the list of repositories of given user.
 | 
			
		||||
func GetRepositories(user *User) ([]Repository, error) {
 | 
			
		||||
	repos := make([]Repository, 0, 10)
 | 
			
		||||
	err := orm.Find(&repos, &Repository{OwnerId: user.Id})
 | 
			
		||||
	err := orm.Desc("updated").Find(&repos, &Repository{OwnerId: user.Id})
 | 
			
		||||
	return repos, err
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user