diff --git a/packages/backend/migration/1731198456912-relationshipsPrivateByDefault.js b/packages/backend/migration/1731198456912-relationshipsPrivateByDefault.js new file mode 100644 index 0000000000..6bd4ab7780 --- /dev/null +++ b/packages/backend/migration/1731198456912-relationshipsPrivateByDefault.js @@ -0,0 +1,15 @@ +export class RelationshipsPrivateByDefault1731198456912 { + name = 'RelationshipsPrivateByDefault1731198456912' + + async up(queryRunner) { + await queryRunner.query(`ALTER TABLE "user_profile" ALTER COLUMN "publicReactions" SET DEFAULT false`); + await queryRunner.query(`ALTER TABLE "user_profile" ALTER COLUMN "followingVisibility" SET DEFAULT 'private'`); + await queryRunner.query(`ALTER TABLE "user_profile" ALTER COLUMN "followersVisibility" SET DEFAULT 'private'`); + } + + async down(queryRunner) { + await queryRunner.query(`ALTER TABLE "user_profile" ALTER COLUMN "followersVisibility" SET DEFAULT 'public'`); + await queryRunner.query(`ALTER TABLE "user_profile" ALTER COLUMN "followingVisibility" SET DEFAULT 'public'`); + await queryRunner.query(`ALTER TABLE "user_profile" ALTER COLUMN "publicReactions" SET DEFAULT true`); + } +} diff --git a/packages/backend/src/models/UserProfile.ts b/packages/backend/src/models/UserProfile.ts index 751b1aff08..de31178a89 100644 --- a/packages/backend/src/models/UserProfile.ts +++ b/packages/backend/src/models/UserProfile.ts @@ -104,19 +104,19 @@ export class MiUserProfile { public emailNotificationTypes: string[]; @Column('boolean', { - default: true, + default: false, }) public publicReactions: boolean; @Column('enum', { enum: followingVisibilities, - default: 'public', + default: 'private', }) public followingVisibility: typeof followingVisibilities[number]; @Column('enum', { enum: followersVisibilities, - default: 'public', + default: 'private', }) public followersVisibility: typeof followersVisibilities[number]; diff --git a/packages/frontend/src/components/SkNote.vue b/packages/frontend/src/components/SkNote.vue index bda5282144..7d1255a0b2 100644 --- a/packages/frontend/src/components/SkNote.vue +++ b/packages/frontend/src/components/SkNote.vue @@ -153,9 +153,6 @@ SPDX-License-Identifier: AGPL-3.0-only > - - -