@@ -63,7 +63,8 @@ export class Actor implements IActor {
|
||||
export function usernameWithDomain(actor: IActor, force = false): string {
|
||||
if (actor.domain) {
|
||||
return `${actor.preferredUsername}@${actor.domain}`;
|
||||
} else if (force) {
|
||||
}
|
||||
if (force) {
|
||||
return `${actor.preferredUsername}@${window.location.hostname}`;
|
||||
}
|
||||
return actor.preferredUsername;
|
||||
|
||||
@@ -56,6 +56,7 @@ export class Group extends Actor implements IGroup {
|
||||
|
||||
this.patch(hash);
|
||||
}
|
||||
|
||||
physicalAddress: IAddress = new Address();
|
||||
|
||||
patch(hash: any) {
|
||||
|
||||
@@ -29,9 +29,9 @@ export class Discussion implements IDiscussion {
|
||||
|
||||
lastComment?: IComment = undefined;
|
||||
|
||||
insertedAt: string = "";
|
||||
insertedAt = "";
|
||||
|
||||
updatedAt: string = "";
|
||||
updatedAt = "";
|
||||
|
||||
constructor(hash?: IDiscussion) {
|
||||
if (!hash) return;
|
||||
|
||||
Reference in New Issue
Block a user