summaryrefslogtreecommitdiffstats
path: root/routers/api/v1
diff options
context:
space:
mode:
Diffstat (limited to 'routers/api/v1')
-rw-r--r--routers/api/v1/convert/convert.go2
-rw-r--r--routers/api/v1/repo/issue.go2
-rw-r--r--routers/api/v1/user/user.go2
3 files changed, 3 insertions, 3 deletions
diff --git a/routers/api/v1/convert/convert.go b/routers/api/v1/convert/convert.go
index 8608d17d99..9729e65452 100644
--- a/routers/api/v1/convert/convert.go
+++ b/routers/api/v1/convert/convert.go
@@ -115,7 +115,7 @@ func ToDeployKey(apiLink string, key *models.DeployKey) *api.DeployKey {
func ToOrganization(org *models.User) *api.Organization {
return &api.Organization{
ID: org.ID,
- AvatarUrl: org.AvatarLink(),
+ AvatarURL: org.AvatarLink(),
UserName: org.Name,
FullName: org.FullName,
Description: org.Description,
diff --git a/routers/api/v1/repo/issue.go b/routers/api/v1/repo/issue.go
index 354678c781..462aca88ad 100644
--- a/routers/api/v1/repo/issue.go
+++ b/routers/api/v1/repo/issue.go
@@ -165,7 +165,7 @@ func EditIssue(ctx *context.APIContext, form api.EditIssueOption) {
return
}
if form.State != nil {
- if err = issue.ChangeStatus(ctx.User, ctx.Repo.Repository, api.STATE_CLOSED == api.StateType(*form.State)); err != nil {
+ if err = issue.ChangeStatus(ctx.User, ctx.Repo.Repository, api.StateClosed == api.StateType(*form.State)); err != nil {
ctx.Error(500, "ChangeStatus", err)
return
}
diff --git a/routers/api/v1/user/user.go b/routers/api/v1/user/user.go
index ef0a5b212e..20ed180ef7 100644
--- a/routers/api/v1/user/user.go
+++ b/routers/api/v1/user/user.go
@@ -38,7 +38,7 @@ func Search(ctx *context.APIContext) {
results[i] = &api.User{
ID: users[i].ID,
UserName: users[i].Name,
- AvatarUrl: users[i].AvatarLink(),
+ AvatarURL: users[i].AvatarLink(),
FullName: users[i].FullName,
}
if ctx.IsSigned {