-
Notifications
You must be signed in to change notification settings - Fork 1
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 'upstream/develop' into develop
- Loading branch information
Showing
144 changed files
with
8,225 additions
and
790 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,10 +13,12 @@ jobs: | |
runs-on: ubuntu-latest | ||
env: | ||
DOCKER_CONTENT_TRUST: 1 | ||
DOCKLE_VERSION: 0.4.14 | ||
steps: | ||
- uses: actions/[email protected] | ||
- run: | | ||
curl -L -o dockle.deb "https://github.com/goodwithtech/dockle/releases/download/v0.4.10/dockle_0.4.10_Linux-64bit.deb" | ||
- name: Download and install dockle v${{ env.DOCKLE_VERSION }} | ||
run: | | ||
curl -L -o dockle.deb "https://github.com/goodwithtech/dockle/releases/download/v${DOCKLE_VERSION}/dockle_${DOCKLE_VERSION}_Linux-64bit.deb" | ||
sudo dpkg -i dockle.deb | ||
- run: | | ||
cp .config/docker_example.env .config/docker.env | ||
|
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
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.
2a59f66
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Chromatic detects changes. Please review the changes on Chromatic.