Explorar el Código

Removed urls from user api

Yoginth hace 7 años
padre
commit
9f25581cdc
Se han modificado 1 ficheros con 0 adiciones y 4 borrados
  1. 0 4
      models/user.go

+ 0 - 4
models/user.go

@@ -182,10 +182,6 @@ func (u *User) APIFormat() *api.User {
 		NumFollowing:     u.NumFollowing,
 		NumFollowers:     u.NumFollowers,
 		AvatarUrl:        u.AvatarLink(),
-		FollowersURL:     setting.AppURL + "api/" + setting.APIVer + "/users/" + u.Name + "/followers",
-		FollowingURL:     setting.AppURL + "api/" + setting.APIVer + "/users/" + u.Name + "/following",
-		OrganizationsURL: setting.AppURL + "api/" + setting.APIVer + "/users/" + u.Name + "/orgs",
-		ReposURL:         setting.AppURL + "api/" + setting.APIVer + "/users/" + u.Name + "/repos",
 	}
 }