mirror of
https://github.com/versia-pub/server.git
synced 2026-03-13 05:49:16 +01:00
Add sanitization to HTML
This commit is contained in:
parent
3c289dd3de
commit
f677737fdd
7 changed files with 110 additions and 13 deletions
|
|
@ -263,8 +263,8 @@ export class User extends BaseEntity {
|
|||
|
||||
await user.generateKeys();
|
||||
await user.updateActor();
|
||||
|
||||
await user.save();
|
||||
|
||||
return user;
|
||||
}
|
||||
|
||||
|
|
@ -403,6 +403,7 @@ export class User extends BaseEntity {
|
|||
outbox: `${config.http.base_url}/users/${this.username}/outbox`,
|
||||
followers: `${config.http.base_url}/users/${this.username}/followers`,
|
||||
following: `${config.http.base_url}/users/${this.username}/following`,
|
||||
published: new Date(this.created_at).toISOString(),
|
||||
manuallyApprovesFollowers: false,
|
||||
summary: this.note,
|
||||
icon: {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue