mirror of
https://iceshrimp.dev/crimekillz/trashposs
synced 2024-11-22 00:43:49 +01:00
[mastodon-client] Fix long redirect URIs
This commit is contained in:
parent
c053b9a045
commit
2192d5c668
@ -0,0 +1,13 @@
|
||||
import { MigrationInterface, QueryRunner } from "typeorm";
|
||||
|
||||
export class IncreaseOAuthRedirecturisLength1697246035867 implements MigrationInterface {
|
||||
name = 'IncreaseOAuthRedirecturisLength1697246035867'
|
||||
|
||||
public async up(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(`ALTER TABLE "oauth_app" ALTER "redirectUris" TYPE character varying(512) array`);
|
||||
}
|
||||
|
||||
public async down(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(`ALTER TABLE "oauth_app" ALTER "redirectUris" TYPE character varying(64) array`);
|
||||
}
|
||||
}
|
@ -45,7 +45,7 @@ export class OAuthApp {
|
||||
public scopes: string[];
|
||||
|
||||
@Column("varchar", {
|
||||
length: 64,
|
||||
length: 512,
|
||||
array: true,
|
||||
comment: "The redirect URIs of the OAuth application",
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user