mirror of
https://github.com/m1k1o/neko.git
synced 2025-08-02 08:19:14 +02:00
only update name in profile.
This commit is contained in:
parent
60910c2d37
commit
b9ff172c15
3 changed files with 10 additions and 8 deletions
|
@ -47,9 +47,11 @@ func (s *session) wsToBackend(msg []byte) error {
|
|||
}
|
||||
|
||||
if request.DisplayName != "" {
|
||||
s.profile.Name = request.DisplayName
|
||||
s.name = request.DisplayName
|
||||
|
||||
err = s.apiReq(http.MethodPost, "/api/profile", s.profile, nil)
|
||||
err = s.apiReq(http.MethodPost, "/api/profile", map[string]any{
|
||||
"name": request.DisplayName,
|
||||
}, nil)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue