all repos — honk @ 832b2e16c36ed618ac737ac1b3ce08b748b8d306

my fork of honk

set display in db
Anirudh Oppiliappan x@icyphox.sh
Wed, 09 Nov 2022 22:29:20 +0530
commit

832b2e16c36ed618ac737ac1b3ce08b748b8d306

parent

b0d27e034626426df022ff5ee20e78984b21157f

1 files changed, 4 insertions(+), 0 deletions(-)

jump to
M web.goweb.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 = ""