mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-05-22 01:34:18 +00:00
[refactor] Unify the export of user data via API (#15144)
* [refactor] unify how user data is exported via API * test time via unix timestamp
This commit is contained in:
parent
f4d27498bd
commit
290cf75f93
26 changed files with 117 additions and 97 deletions
|
@ -279,7 +279,7 @@ func GetIssueSubscribers(ctx *context.APIContext) {
|
|||
}
|
||||
apiUsers := make([]*api.User, 0, len(users))
|
||||
for i := range users {
|
||||
apiUsers[i] = convert.ToUser(users[i], ctx.IsSigned, false)
|
||||
apiUsers[i] = convert.ToUser(users[i], ctx.User)
|
||||
}
|
||||
|
||||
ctx.JSON(http.StatusOK, apiUsers)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue