set display in db
Anirudh Oppiliappan x@icyphox.sh
Wed, 09 Nov 2022 22:29:20 +0530
1 files changed,
4 insertions(+),
0 deletions(-)
jump to
M
web.go
→
web.go
@@ -1242,6 +1242,10 @@
sendupdate := false if r.FormValue("displayname") != "" { options.CustomDisplay = r.FormValue("displayname") + _, err := db.Exec("update users set displayname = ? where username = ?", options.CustomDisplay, u.Username) + if err != nil { + elog.Printf("error setting displayname: %s", err) + } sendupdate = true } else { options.CustomDisplay = ""