MCPcopy Create free account
hub / github.com/daodst/chat / SetAvatarURL

Method SetAvatarURL

userapi/internal/api.go:835–837  ·  view source on GitHub ↗
(ctx context.Context, req *api.PerformSetAvatarURLRequest, res *api.PerformSetAvatarURLResponse)

Source from the content-addressed store, hash-verified

833}
834
835func (a *UserInternalAPI) SetAvatarURL(ctx context.Context, req *api.PerformSetAvatarURLRequest, res *api.PerformSetAvatarURLResponse) error {
836 return a.DB.SetAvatarURL(ctx, req.Localpart, req.AvatarURL)
837}
838
839func (a *UserInternalAPI) QueryNumericLocalpart(ctx context.Context, res *api.QueryNumericLocalpartResponse) error {
840 id, err := a.DB.GetNewNumericLocalpart(ctx)

Callers

nothing calls this directly

Calls 1

SetAvatarURLMethod · 0.65

Tested by

no test coverage detected