]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/models/account/account.ts
Add ability for plugins to alter video jsonld
[github/Chocobozzz/PeerTube.git] / server / models / account / account.ts
index dc989417bf2ab4c9aea8020e3127584e645c90d4..5bf29f45a8a15f5ad6ca8eefeec6f9c17e1ba3c2 100644 (file)
@@ -447,8 +447,8 @@ export class AccountModel extends Model<Partial<AttributesOnly<AccountModel>>> {
     }
   }
 
-  toActivityPubObject (this: MAccountAP) {
-    const obj = this.Actor.toActivityPubObject(this.name)
+  async toActivityPubObject (this: MAccountAP) {
+    const obj = await this.Actor.toActivityPubObject(this.name)
 
     return Object.assign(obj, {
       summary: this.description