0
0
Fork 0
mirror of https://github.com/go-gitea/gitea synced 2024-11-22 01:53:56 +01:00

Fix link of some repos on stars page (#737)

Link was wrong the repo was of another owner
This commit is contained in:
Andrey Nering 2017-01-24 00:39:58 -02:00 committed by Lunny Xiao
parent 3461003a0f
commit 521d429b58

View file

@ -81,7 +81,15 @@ func (u *User) GetStarredRepos(private bool) (repos []*Repository, err error) {
sess = sess.And("is_private = ?", false)
}
err = sess.
Find(&repos)
if err = sess.Find(&repos); err != nil {
return
}
for _, repo := range repos {
if err = repo.GetOwner(); err != nil {
return
}
}
return
}