mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-12-22 16:47:30 +00:00
Use Plural
This commit is contained in:
parent
653ced5596
commit
6d814447d0
|
@ -15,7 +15,7 @@ func init() {
|
|||
db.RegisterModel(new(FederatedRepo))
|
||||
}
|
||||
|
||||
func FindFederatedRepoByRepoID(ctx context.Context, repoId int64) ([]*FederatedRepo, error) {
|
||||
func FindFederatedReposByRepoID(ctx context.Context, repoId int64) ([]*FederatedRepo, error) {
|
||||
maxFederatedRepos := 10
|
||||
sess := db.GetEngine(ctx).Where("repo_id=?", repoId)
|
||||
sess = sess.Limit(maxFederatedRepos, 0)
|
||||
|
|
|
@ -380,7 +380,7 @@ func repoAssignment(ctx *Context, repo *repo_model.Repository) {
|
|||
ctx.Data["HasAccess"] = true
|
||||
ctx.Data["Permission"] = &ctx.Repo.Permission
|
||||
|
||||
federatedRepo, err := repo_model.FindFederatedRepoByRepoID(ctx, repo.ID)
|
||||
federatedRepo, err := repo_model.FindFederatedReposByRepoID(ctx, repo.ID)
|
||||
if err == nil {
|
||||
// TODO: concat string to semicolon sperated list here
|
||||
ctx.Data["FederatedRepos"] = federatedRepo
|
||||
|
|
Loading…
Reference in a new issue