* ✌️

* ✌️

* Update privacy.vue
This commit is contained in:
syuilo 2020-12-11 21:16:20 +09:00 committed by GitHub
parent 488e6feed9
commit 69c3c4e3dc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
13 changed files with 52 additions and 4 deletions

View file

@ -157,6 +157,13 @@ export class User {
})
public isModerator: boolean;
@Index()
@Column('boolean', {
default: true,
comment: 'Whether the User is explorable.'
})
public isExplorable: boolean;
@Column('varchar', {
length: 128, array: true, default: '{}'
})

View file

@ -240,6 +240,7 @@ export class UserRepository extends Repository<User> {
carefulBot: profile!.carefulBot,
autoAcceptFollowed: profile!.autoAcceptFollowed,
noCrawle: profile!.noCrawle,
isExplorable: user.isExplorable,
hasUnreadSpecifiedNotes: NoteUnreads.count({
where: { userId: user.id, isSpecified: true },
take: 1