1
0
Fork 1
mirror of https://example.com synced 2024-11-22 12:36:40 +09:00

feat: reject crawling by default (close #36)

This commit is contained in:
naskya 2023-10-02 07:23:59 +09:00
parent 0c32eb6907
commit 15bf6b5bdb
Signed by: naskya
GPG key ID: 164DFF24E2D40139
3 changed files with 3 additions and 2 deletions

View file

@ -32,6 +32,7 @@
## 細かい変更点
- デフォルトで検索エンジンからのクロールを拒否するように変更
- 検索の MFM で使用する検索エンジンを設定から変更可能に
- 以下の選択肢から選べます
- DuckDuckGo (duckduckgo.com)

View file

@ -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.'`,

View file

@ -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;