enable hideOnlineStatus by default for new users
This commit is contained in:
parent
92ffd2a5fc
commit
b7a6ccfef9
3 changed files with 14 additions and 3 deletions
|
@ -0,0 +1,11 @@
|
||||||
|
export class AlterUserHideOnlineStatusDefaultTrue1733754069260 {
|
||||||
|
name = 'AlterUserHideOnlineStatusDefaultTrue1733754069260'
|
||||||
|
|
||||||
|
async up(queryRunner) {
|
||||||
|
await queryRunner.query(`ALTER TABLE "user" ALTER COLUMN "hideOnlineStatus" SET DEFAULT true`);
|
||||||
|
}
|
||||||
|
|
||||||
|
async down(queryRunner) {
|
||||||
|
await queryRunner.query(`ALTER TABLE "user" ALTER COLUMN "hideOnlineStatus" SET DEFAULT false`);
|
||||||
|
}
|
||||||
|
}
|
|
@ -32,7 +32,7 @@ export class MiUser {
|
||||||
public lastActiveDate: Date | null;
|
public lastActiveDate: Date | null;
|
||||||
|
|
||||||
@Column('boolean', {
|
@Column('boolean', {
|
||||||
default: false,
|
default: true,
|
||||||
})
|
})
|
||||||
public hideOnlineStatus: boolean;
|
public hideOnlineStatus: boolean;
|
||||||
|
|
||||||
|
@ -160,7 +160,7 @@ export class MiUser {
|
||||||
length: 128, nullable: true,
|
length: 128, nullable: true,
|
||||||
})
|
})
|
||||||
public backgroundBlurhash: string | null;
|
public backgroundBlurhash: string | null;
|
||||||
|
|
||||||
@Column('jsonb', {
|
@Column('jsonb', {
|
||||||
default: [],
|
default: [],
|
||||||
})
|
})
|
||||||
|
|
|
@ -44,7 +44,7 @@ import MkFolder from '@/components/MkFolder.vue';
|
||||||
import { misskeyApi } from '@/scripts/misskey-api.js';
|
import { misskeyApi } from '@/scripts/misskey-api.js';
|
||||||
|
|
||||||
const isLocked = ref(false);
|
const isLocked = ref(false);
|
||||||
const hideOnlineStatus = ref(false);
|
const hideOnlineStatus = ref(true);
|
||||||
const noCrawle = ref(false);
|
const noCrawle = ref(false);
|
||||||
|
|
||||||
watch([isLocked, hideOnlineStatus, noCrawle], () => {
|
watch([isLocked, hideOnlineStatus, noCrawle], () => {
|
||||||
|
|
Loading…
Add table
Reference in a new issue