forked from misskey-dev/misskey
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'refs/remotes/misskey-original/develop' …
…into develop # Conflicts: # packages/backend/src/core/QueueModule.ts # packages/backend/src/core/QueueService.ts # packages/backend/src/core/chart/charts/federation.ts # packages/backend/src/models/RepositoryModule.ts # packages/backend/src/models/_.ts # packages/backend/src/queue/types.ts # packages/backend/src/server/api/EndpointsModule.ts # packages/backend/src/server/api/endpoints.ts # packages/backend/src/server/api/endpoints/admin/queue/stats.ts # packages/backend/src/server/api/endpoints/users/report-abuse.ts # packages/backend/src/server/web/ClientServerService.ts # packages/frontend/src/components/MkButton.vue # packages/frontend/src/components/MkChannelFollowButton.vue # packages/frontend/src/components/MkClickerGame.vue # packages/frontend/src/components/MkSwitch.vue
- Loading branch information
Showing
155 changed files
with
8,297 additions
and
909 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
62 changes: 62 additions & 0 deletions
62
packages/backend/migration/1713656541000-abuse-report-notification.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
/* | ||
* SPDX-FileCopyrightText: syuilo and misskey-project | ||
* SPDX-License-Identifier: AGPL-3.0-only | ||
*/ | ||
|
||
export class AbuseReportNotification1713656541000 { | ||
name = 'AbuseReportNotification1713656541000' | ||
|
||
async up(queryRunner) { | ||
await queryRunner.query(` | ||
CREATE TABLE "system_webhook" ( | ||
"id" varchar(32) NOT NULL, | ||
"isActive" boolean NOT NULL DEFAULT true, | ||
"updatedAt" timestamp with time zone NOT NULL DEFAULT CURRENT_TIMESTAMP, | ||
"latestSentAt" timestamp with time zone NULL DEFAULT NULL, | ||
"latestStatus" integer NULL DEFAULT NULL, | ||
"name" varchar(255) NOT NULL, | ||
"on" varchar(128) [] NOT NULL DEFAULT '{}'::character varying[], | ||
"url" varchar(1024) NOT NULL, | ||
"secret" varchar(1024) NOT NULL, | ||
CONSTRAINT "PK_system_webhook_id" PRIMARY KEY ("id") | ||
); | ||
CREATE INDEX "IDX_system_webhook_isActive" ON "system_webhook" ("isActive"); | ||
CREATE INDEX "IDX_system_webhook_on" ON "system_webhook" USING gin ("on"); | ||
CREATE TABLE "abuse_report_notification_recipient" ( | ||
"id" varchar(32) NOT NULL, | ||
"isActive" boolean NOT NULL DEFAULT true, | ||
"updatedAt" timestamp with time zone NOT NULL DEFAULT CURRENT_TIMESTAMP, | ||
"name" varchar(255) NOT NULL, | ||
"method" varchar(64) NOT NULL, | ||
"userId" varchar(32) NULL DEFAULT NULL, | ||
"systemWebhookId" varchar(32) NULL DEFAULT NULL, | ||
CONSTRAINT "PK_abuse_report_notification_recipient_id" PRIMARY KEY ("id"), | ||
CONSTRAINT "FK_abuse_report_notification_recipient_userId1" FOREIGN KEY ("userId") REFERENCES "user"("id") ON DELETE CASCADE ON UPDATE NO ACTION, | ||
CONSTRAINT "FK_abuse_report_notification_recipient_userId2" FOREIGN KEY ("userId") REFERENCES "user_profile"("userId") ON DELETE CASCADE ON UPDATE NO ACTION, | ||
CONSTRAINT "FK_abuse_report_notification_recipient_systemWebhookId" FOREIGN KEY ("systemWebhookId") REFERENCES "system_webhook"("id") ON DELETE CASCADE ON UPDATE NO ACTION | ||
); | ||
CREATE INDEX "IDX_abuse_report_notification_recipient_isActive" ON "abuse_report_notification_recipient" ("isActive"); | ||
CREATE INDEX "IDX_abuse_report_notification_recipient_method" ON "abuse_report_notification_recipient" ("method"); | ||
CREATE INDEX "IDX_abuse_report_notification_recipient_userId" ON "abuse_report_notification_recipient" ("userId"); | ||
CREATE INDEX "IDX_abuse_report_notification_recipient_systemWebhookId" ON "abuse_report_notification_recipient" ("systemWebhookId"); | ||
`); | ||
} | ||
|
||
async down(queryRunner) { | ||
await queryRunner.query(` | ||
ALTER TABLE "abuse_report_notification_recipient" DROP CONSTRAINT "FK_abuse_report_notification_recipient_userId1"; | ||
ALTER TABLE "abuse_report_notification_recipient" DROP CONSTRAINT "FK_abuse_report_notification_recipient_userId2"; | ||
ALTER TABLE "abuse_report_notification_recipient" DROP CONSTRAINT "FK_abuse_report_notification_recipient_systemWebhookId"; | ||
DROP INDEX "IDX_abuse_report_notification_recipient_isActive"; | ||
DROP INDEX "IDX_abuse_report_notification_recipient_method"; | ||
DROP INDEX "IDX_abuse_report_notification_recipient_userId"; | ||
DROP INDEX "IDX_abuse_report_notification_recipient_systemWebhookId"; | ||
DROP TABLE "abuse_report_notification_recipient"; | ||
DROP INDEX "IDX_system_webhook_isActive"; | ||
DROP INDEX "IDX_system_webhook_on"; | ||
DROP TABLE "system_webhook"; | ||
`); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.