mirror of
https://github.com/versia-pub/server.git
synced 2026-03-13 05:49:16 +01:00
test(api): ✅ Remove old tests and introduce new, better ones
Some checks failed
CodeQL Scan / Analyze (javascript-typescript) (push) Failing after 6s
Build Docker Images / lint (push) Successful in 50s
Build Docker Images / check (push) Successful in 1m24s
Build Docker Images / tests (push) Failing after 8s
Build Docker Images / build (server, Dockerfile, ${{ github.repository_owner }}/server) (push) Has been skipped
Build Docker Images / build (worker, Worker.Dockerfile, ${{ github.repository_owner }}/worker) (push) Has been skipped
Deploy Docs to GitHub Pages / build (push) Failing after 15s
Mirror to Codeberg / Mirror (push) Failing after 0s
Deploy Docs to GitHub Pages / Deploy (push) Has been skipped
Nix Build / check (push) Failing after 33m5s
Some checks failed
CodeQL Scan / Analyze (javascript-typescript) (push) Failing after 6s
Build Docker Images / lint (push) Successful in 50s
Build Docker Images / check (push) Successful in 1m24s
Build Docker Images / tests (push) Failing after 8s
Build Docker Images / build (server, Dockerfile, ${{ github.repository_owner }}/server) (push) Has been skipped
Build Docker Images / build (worker, Worker.Dockerfile, ${{ github.repository_owner }}/worker) (push) Has been skipped
Deploy Docs to GitHub Pages / build (push) Failing after 15s
Mirror to Codeberg / Mirror (push) Failing after 0s
Deploy Docs to GitHub Pages / Deploy (push) Has been skipped
Nix Build / check (push) Failing after 33m5s
This commit is contained in:
parent
f1ef85b314
commit
ec506241f0
23 changed files with 819 additions and 1001 deletions
|
|
@ -102,6 +102,8 @@ export class User extends BaseInterface<typeof Users, UserWithRelations> {
|
|||
}
|
||||
|
||||
this.data = reloaded.data;
|
||||
this.avatar = reloaded.avatar;
|
||||
this.header = reloaded.header;
|
||||
}
|
||||
|
||||
public static async fromId(id: string | null): Promise<User | null> {
|
||||
|
|
@ -1146,7 +1148,7 @@ export class User extends BaseInterface<typeof Users, UserWithRelations> {
|
|||
moved: null,
|
||||
noindex: false,
|
||||
suspended: false,
|
||||
discoverable: null,
|
||||
discoverable: user.isDiscoverable,
|
||||
mute_expires_at: null,
|
||||
roles: user.roles
|
||||
.map((role) => new Role(role))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue