summaryrefslogtreecommitdiff
path: root/packages/backend/src/models/DriveFile.ts
diff options
context:
space:
mode:
authorHazel K <acomputerdog@gmail.com>2024-10-03 19:53:57 -0400
committerHazel K <acomputerdog@gmail.com>2024-10-03 19:53:57 -0400
commit063b2ff2662c549cfa658b5ed8db985aa555d23d (patch)
tree85d39454a8eaa1772ad65292e5f29bea3a00fd7b /packages/backend/src/models/DriveFile.ts
parentmerge: Feat: Implement "Show Below Avatar" for Avatar Decorations (!645) (diff)
downloadsharkey-063b2ff2662c549cfa658b5ed8db985aa555d23d.tar.gz
sharkey-063b2ff2662c549cfa658b5ed8db985aa555d23d.tar.bz2
sharkey-063b2ff2662c549cfa658b5ed8db985aa555d23d.zip
increase character limits and share between text and CW
Diffstat (limited to 'packages/backend/src/models/DriveFile.ts')
-rw-r--r--packages/backend/src/models/DriveFile.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/backend/src/models/DriveFile.ts b/packages/backend/src/models/DriveFile.ts
index dd810681c5..f536a7e4c6 100644
--- a/packages/backend/src/models/DriveFile.ts
+++ b/packages/backend/src/models/DriveFile.ts
@@ -7,6 +7,7 @@ import { PrimaryColumn, Entity, Index, JoinColumn, Column, ManyToOne } from 'typ
import { id } from './util/id.js';
import { MiUser } from './User.js';
import { MiDriveFolder } from './DriveFolder.js';
+import {DB_MAX_IMAGE_COMMENT_LENGTH} from "@/const.js";
@Entity('drive_file')
@Index(['userId', 'folderId', 'id'])
@@ -61,7 +62,7 @@ export class MiDriveFile {
public size: number;
@Column('varchar', {
- length: 8192,
+ length: DB_MAX_IMAGE_COMMENT_LENGTH,
nullable: true,
comment: 'The comment of the DriveFile.',
})