aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/models
diff options
context:
space:
mode:
Diffstat (limited to 'server/models')
-rw-r--r--server/models/activitypub/actor.ts4
1 files changed, 4 insertions, 0 deletions
diff --git a/server/models/activitypub/actor.ts b/server/models/activitypub/actor.ts
index 267032e2a..aeb69e7b4 100644
--- a/server/models/activitypub/actor.ts
+++ b/server/models/activitypub/actor.ts
@@ -454,6 +454,10 @@ export class ActorModel extends Model<ActorModel> {
454 return 'acct:' + this.preferredUsername + '@' + this.getHost() 454 return 'acct:' + this.preferredUsername + '@' + this.getHost()
455 } 455 }
456 456
457 getIdentifier () {
458 return this.Server ? `${this.preferredUsername}@${this.Server.host}` : this.preferredUsername
459 }
460
457 getHost () { 461 getHost () {
458 return this.Server ? this.Server.host : CONFIG.WEBSERVER.HOST 462 return this.Server ? this.Server.host : CONFIG.WEBSERVER.HOST
459 } 463 }