mirror of https://github.com/go-gitea/gitea.git
Fix link of some repos on stars page (#737)
Link was wrong the repo was of another owner
This commit is contained in:
parent
3461003a0f
commit
521d429b58
|
@ -81,7 +81,15 @@ func (u *User) GetStarredRepos(private bool) (repos []*Repository, err error) {
|
||||||
sess = sess.And("is_private = ?", false)
|
sess = sess.And("is_private = ?", false)
|
||||||
}
|
}
|
||||||
|
|
||||||
err = sess.
|
if err = sess.Find(&repos); err != nil {
|
||||||
Find(&repos)
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
for _, repo := range repos {
|
||||||
|
if err = repo.GetOwner(); err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue