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
packages/backend
|
@ -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…
Add table
Add a link
Reference in a new issue