Skip to content

Commit

Permalink
hotfix e1986b2
Browse files Browse the repository at this point in the history
  • Loading branch information
noridev committed Feb 6, 2025
1 parent d4abea0 commit af75180
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ export class setFederationAvatarShape1738776889000 {
name = 'setFederationAvatarShape1738776889000'

async up(queryRunner) {
await queryRunner.query(`ALTER TABLE "user" ADD "setFederationAvatarShape" boolean NOT NULL DEFAULT true`);
await queryRunner.query(`ALTER TABLE "user" ADD "isSquareAvatars" boolean NOT NULL DEFAULT true`);
await queryRunner.query(`ALTER TABLE "user" ADD "setFederationAvatarShape" boolean NOT NULL DEFAULT false`);
await queryRunner.query(`ALTER TABLE "user" ADD "isSquareAvatars" boolean NOT NULL DEFAULT false`);
}

async down(queryRunner) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -723,7 +723,7 @@ export class ApPersonService implements OnModuleInit {
setFederationAvatarShape: person.setFederationAvatarShape,
isSquareAvatars: person.isSquareAvatars,
...(await this.resolveAvatarAndBanner(exist, person.icon, person.image).catch(() => ({}))),
} as Partial<MiRemoteUser> & Pick<MiRemoteUser, 'isBot' | 'isCat' | 'isLocked' | 'movedToUri' | 'alsoKnownAs' | 'isExplorable' | 'setFederationAvatarShape' | 'isSquareAvatars'>;
} as Partial<MiRemoteUser> & Pick<MiRemoteUser, 'isBot' | 'isCat' | 'isLocked' | 'movedToUri' | 'alsoKnownAs' | 'isExplorable'>;

const moving = ((): boolean => {
// η§»θ‘Œε…ˆγŒγͺい→ある
Expand Down
2 changes: 1 addition & 1 deletion packages/backend/src/models/User.ts
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ export class MiUser {
public token: string | null;

@Column('boolean', {
default: true,
default: false,
})
public setFederationAvatarShape: boolean;

Expand Down

0 comments on commit af75180

Please sign in to comment.