function isRemoteUser
isRemoteUser(user: User): boolean

Checks whether user's account lives on another instance, whose user signs in here through federation (federation-service.ts). Their password, email, avatar and name are that instance's to change, so the routes that change them here refuse.

Parameters

user: User

Return Type

boolean

Usage

import { isRemoteUser } from "api/model/user.ts";