Add user moderation in the account page
[oweals/peertube.git] / server / models / account / account.ts
index 27c75d8861203c3be8c6e8e27b9d134e3dbb334c..5a237d733a0efd06c6fa98ed258c323e7b8c9058 100644 (file)
@@ -248,7 +248,8 @@ export class AccountModel extends Model<AccountModel> {
       displayName: this.getDisplayName(),
       description: this.description,
       createdAt: this.createdAt,
-      updatedAt: this.updatedAt
+      updatedAt: this.updatedAt,
+      userId: this.userId ? this.userId : undefined
     }
 
     return Object.assign(actor, account)