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:
parent
0c32eb6907
commit
15bf6b5bdb
3 changed files with 3 additions and 2 deletions
|
@ -32,6 +32,7 @@
|
|||
|
||||
## 細かい変更点
|
||||
|
||||
- デフォルトで検索エンジンからのクロールを拒否するように変更
|
||||
- 検索の MFM で使用する検索エンジンを設定から変更可能に
|
||||
- 以下の選択肢から選べます
|
||||
- DuckDuckGo (duckduckgo.com)
|
||||
|
|
|
@ -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.'`,
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue