profile.actions
'use server'. Types: ProfileFilters, maps to UserProfileData.
Reads
getUserProfileByDatabaseId(id)— primary path; loadsusers+accounts, returns prefs (spacing_theme,pagination_mode,emoji_panel_behavior,font_preference,flair_preference)getUserProfileById— alternate lookup (see source for identifier rules)getUserProfile— deprecated; numeric IDs delegate to database ID helpersearchUsers— admin/search listing with filters
Writes
updateUserProfile— field updates with validationupdateUserPreferencesAction/updateBioAction— focused mutations;revalidatePathon profile routes
Uses getEffectiveCharacterCount for bio limits. Logger: ProfileActions.
Sources: src/lib/actions/profile.actions.ts