diff options
Diffstat (limited to 'server/models/account/account.ts')
-rw-r--r-- | server/models/account/account.ts | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/server/models/account/account.ts b/server/models/account/account.ts index c5955ef3b..3ff59887d 100644 --- a/server/models/account/account.ts +++ b/server/models/account/account.ts | |||
@@ -246,7 +246,7 @@ export class AccountModel extends Model<AccountModel> { | |||
246 | const actor = this.Actor.toFormattedJSON() | 246 | const actor = this.Actor.toFormattedJSON() |
247 | const account = { | 247 | const account = { |
248 | id: this.id, | 248 | id: this.id, |
249 | displayName: this.name, | 249 | displayName: this.getDisplayName(), |
250 | description: this.description, | 250 | description: this.description, |
251 | createdAt: this.createdAt, | 251 | createdAt: this.createdAt, |
252 | updatedAt: this.updatedAt | 252 | updatedAt: this.updatedAt |
@@ -266,4 +266,8 @@ export class AccountModel extends Model<AccountModel> { | |||
266 | isOwned () { | 266 | isOwned () { |
267 | return this.Actor.isOwned() | 267 | return this.Actor.isOwned() |
268 | } | 268 | } |
269 | |||
270 | getDisplayName () { | ||
271 | return this.name | ||
272 | } | ||
269 | } | 273 | } |