feat: add folloers/following list

This commit is contained in:
Krispire Admin
2026-06-09 13:20:14 +05:30
parent 0188a34cf6
commit da2bbc323d
5 changed files with 126 additions and 0 deletions
+8
View File
@@ -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.