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.
This commit is contained in:
KN4CK3R authored and GitHub committed 2021-05-02 21:03:15 +02:00
1 parent 0590176a23
commit 8c8471e754
5 files changed
+22 -14

No files matched your search

+3
View File
@@ -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
}