Fix front-end stuff

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel
2023-03-23 20:39:39 +01:00
parent 986ae45f52
commit c4e9f88e85
23 changed files with 229 additions and 83 deletions

View File

@@ -15,6 +15,8 @@ export interface IActor {
type: ActorType;
}
export type IMinimalActor = Pick<IActor, "preferredUsername" | "domain">;
export class Actor implements IActor {
id?: string;
@@ -57,7 +59,7 @@ export class Actor implements IActor {
}
export function usernameWithDomain(
actor: IActor | undefined,
actor: IMinimalActor | undefined,
force = false
): string {
if (!actor) return "";