feat: add folloers/following list
This commit is contained in:
@@ -12,6 +12,14 @@ import (
|
||||
// pointer because OAuth-only users have no password — *PasswordHash == nil
|
||||
// means "this account can only sign in via a linked OAuth provider".
|
||||
//
|
||||
// UserSummary is the lightweight projection used in follower / following
|
||||
// lists — just enough to render a row and link to the profile.
|
||||
type UserSummary struct {
|
||||
Handle string `json:"handle"`
|
||||
Name string `json:"name"`
|
||||
AvatarURL *string `json:"avatar_url"`
|
||||
}
|
||||
|
||||
// EmailVerifiedAt is a pointer so JSON-encoded users carry an explicit `null`
|
||||
// when the user has not yet verified, instead of an omitted field — the
|
||||
// frontend uses this to decide whether to show the "verify your email" ribbon.
|
||||
|
||||
Reference in New Issue
Block a user