UpdateState changes user's state and state of some topics associated with the user.
(uid types.Uid, state types.ObjState)
| 409 | |
| 410 | // UpdateState changes user's state and state of some topics associated with the user. |
| 411 | func (usersMapper) UpdateState(uid types.Uid, state types.ObjState) error { |
| 412 | update := map[string]any{ |
| 413 | "State": state, |
| 414 | "StateAt": types.TimeNow()} |
| 415 | return adp.UserUpdate(uid, update) |
| 416 | } |
| 417 | |
| 418 | // GetSubs loads *all* subscriptions for the given user. |
| 419 | // Does not load Public/Trusted or Private, does not load deleted subscriptions. |
nothing calls this directly
no test coverage detected