diff --git a/README.md b/README.md index 157bdee3..98c9131a 100644 --- a/README.md +++ b/README.md @@ -32,6 +32,7 @@ ## 細かい変更点 +- デフォルトで検索エンジンからのクロールを拒否するように変更 - 検索の MFM で使用する検索エンジンを設定から変更可能に - 以下の選択肢から選べます - DuckDuckGo (duckduckgo.com) diff --git a/packages/backend/migration/1606191203881-no-crawle.js b/packages/backend/migration/1606191203881-no-crawle.js index 4e7e8227..8eee71a2 100644 --- a/packages/backend/migration/1606191203881-no-crawle.js +++ b/packages/backend/migration/1606191203881-no-crawle.js @@ -4,7 +4,7 @@ export class noCrawle1606191203881 { } async up(queryRunner) { await queryRunner.query( - `ALTER TABLE "user_profile" ADD "noCrawle" boolean NOT NULL DEFAULT false`, + `ALTER TABLE "user_profile" ADD "noCrawle" boolean NOT NULL DEFAULT true`, ); await queryRunner.query( `COMMENT ON COLUMN "user_profile"."noCrawle" IS 'Whether reject index by crawler.'`, diff --git a/packages/backend/src/models/entities/user-profile.ts b/packages/backend/src/models/entities/user-profile.ts index 0b886386..19c811cf 100644 --- a/packages/backend/src/models/entities/user-profile.ts +++ b/packages/backend/src/models/entities/user-profile.ts @@ -162,7 +162,7 @@ export class UserProfile { public autoAcceptFollowed: boolean; @Column("boolean", { - default: false, + default: true, comment: "Whether reject index by crawler.", }) public noCrawle: boolean;