1
0
mirror of https://git.boykissers.com/pawkey/pawkey-sk.git synced 2025-12-20 12:14:18 +00:00

add "reject quotes" toggle at user and instance level

+ improve, cleanup, and de-duplicate quote resolution
+ add warning message when quote cannot be loaded
+ add "process error" framework to display warnings when a note cannot be correctly loaded from another instance
This commit is contained in:
Hazelnoot
2025-02-15 23:08:02 -05:00
parent 93ffd4611c
commit 292d3b9229
36 changed files with 466 additions and 88 deletions

View File

@@ -0,0 +1,11 @@
export class AddNoteProcessErrors1739671352784 {
name = 'AddNoteProcessErrors1739671352784'
async up(queryRunner) {
await queryRunner.query(`ALTER TABLE "note" ADD "processErrors" text array`);
}
async down(queryRunner) {
await queryRunner.query(`ALTER TABLE "note" DROP COLUMN "processErrors"`);
}
}

View File

@@ -0,0 +1,11 @@
export class AddUserRejectQuotes1739671777344 {
name = 'AddUserRejectQuotes1739671777344'
async up(queryRunner) {
await queryRunner.query(`ALTER TABLE "user" ADD "rejectQuotes" boolean NOT NULL DEFAULT false`);
}
async down(queryRunner) {
await queryRunner.query(`ALTER TABLE "user" DROP COLUMN "rejectQuotes"`);
}
}

View File

@@ -0,0 +1,11 @@
export class AddInstanceRejectQuotes1739671847942 {
name = 'AddInstanceRejectQuotes1739671847942'
async up(queryRunner) {
await queryRunner.query(`ALTER TABLE "instance" ADD "rejectQuotes" boolean NOT NULL DEFAULT false`);
}
async down(queryRunner) {
await queryRunner.query(`ALTER TABLE "instance" DROP COLUMN "rejectQuotes"`);
}
}