Various group-related improvements
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user