increase image description limit to 2048 characters #174
4 changed files with 18 additions and 4 deletions
|
@ -0,0 +1,14 @@
|
||||||
|
|
||||||
|
export class resizeCommentsDriveFile1663399074403 {
|
||||||
|
constructor() {
|
||||||
|
this.name = 'resizeCommentsDriveFile1663399074403';
|
||||||
|
}
|
||||||
|
|
||||||
|
async up(queryRunner) {
|
||||||
|
await queryRunner.query(`ALTER TABLE "drive_file" ALTER COLUMN "comment" TYPE character varying(2048)`);
|
||||||
|
}
|
||||||
|
|
||||||
|
async down(queryRunner) {
|
||||||
|
await queryRunner.query(`ALTER TABLE "drive_file" ALTER COLUMN "comment" TYPE character varying(512)`);
|
||||||
|
}
|
||||||
|
}
|
|
@ -52,7 +52,7 @@ export const paramDef = {
|
||||||
folderId: { type: 'string', format: 'misskey:id', nullable: true },
|
folderId: { type: 'string', format: 'misskey:id', nullable: true },
|
||||||
name: { type: 'string' },
|
name: { type: 'string' },
|
||||||
isSensitive: { type: 'boolean' },
|
isSensitive: { type: 'boolean' },
|
||||||
comment: { type: 'string', nullable: true, maxLength: 512 },
|
comment: { type: 'string', nullable: true, maxLength: 2048 },
|
||||||
},
|
},
|
||||||
required: ['fileId'],
|
required: ['fileId'],
|
||||||
} as const;
|
} as const;
|
||||||
|
|
|
@ -25,7 +25,7 @@ export const paramDef = {
|
||||||
url: { type: 'string' },
|
url: { type: 'string' },
|
||||||
folderId: { type: 'string', format: 'misskey:id', nullable: true, default: null },
|
folderId: { type: 'string', format: 'misskey:id', nullable: true, default: null },
|
||||||
isSensitive: { type: 'boolean', default: false },
|
isSensitive: { type: 'boolean', default: false },
|
||||||
comment: { type: 'string', nullable: true, maxLength: 512, default: null },
|
comment: { type: 'string', nullable: true, maxLength: 2048, default: null },
|
||||||
marker: { type: 'string', nullable: true, default: null },
|
marker: { type: 'string', nullable: true, default: null },
|
||||||
force: { type: 'boolean', default: false },
|
force: { type: 'boolean', default: false },
|
||||||
},
|
},
|
||||||
|
|
|
@ -104,8 +104,8 @@ function onInputKeydown(evt: KeyboardEvent): void {
|
||||||
}
|
}
|
||||||
|
|
||||||
const remainingLength = computed((): number => {
|
const remainingLength = computed((): number => {
|
||||||
if (typeof inputValue !== 'string') return 512;
|
if (typeof inputValue !== 'string') return 2048;
|
||||||
return 512 - length(inputValue);
|
return 2048 - length(inputValue);
|
||||||
});
|
});
|
||||||
|
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
|
|
Loading…
Reference in a new issue