interface PublicUser

Returned by every endpoint that shows a user to others: profiles, the users one follows, search results, and the user_updated socket message. The server makes it with toPublicUser, which drops the email.

Properties

id: string
username: string

Picked at sign-up, and changeable since, a former name staying an alias of the user for good. Pages write it as @name (userPath).

optional
updatedAt: Date

Bumped by any profile or avatar change. The client uses it to reload the avatar.

optional
avatarMime: string

Undefined without an avatar.

optional
description: string

Markdown.

optional
invitedByUsername: string

Usage

import { type PublicUser } from "shared/user.ts";