Various group-related improvements

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel
2021-06-16 11:25:53 +02:00
parent 6cc233a6d3
commit f8e73ca990
9 changed files with 197 additions and 112 deletions

View File

@@ -57,7 +57,8 @@ export class Actor implements IActor {
}
export function usernameWithDomain(actor: IActor, force = false): string {
if (actor.domain) {
if (!actor) return "";
if (actor?.domain) {
return `${actor.preferredUsername}@${actor.domain}`;
}
if (force) {