From 8c8471e75464fa6253a44cdbb8f6ad233aae9067 Mon Sep 17 00:00:00 2001 From: KN4CK3R Date: Sun, 2 May 2021 21:03:15 +0200 Subject: Addition to (Add Location, Website and Description to API #15675) (#15690) * Use same name as other structs. * Sync with normal forms. * Edit description with API. * Workaround for nil value. --- routers/api/v1/admin/user.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'routers') diff --git a/routers/api/v1/admin/user.go b/routers/api/v1/admin/user.go index 5a74c6ccd5..2d4a3815f4 100644 --- a/routers/api/v1/admin/user.go +++ b/routers/api/v1/admin/user.go @@ -203,6 +203,9 @@ func EditUser(ctx *context.APIContext) { if form.Location != nil { u.Location = *form.Location } + if form.Description != nil { + u.Description = *form.Description + } if form.Active != nil { u.IsActive = *form.Active } -- cgit v1.2.3