Skip to content
Snippets Groups Projects
Commit c5d9bde4 authored by Hazelnoot's avatar Hazelnoot
Browse files

expose CW limit to frontend

parent 01e98c75
No related branches found
No related tags found
No related merge requests found
......@@ -111,6 +111,8 @@ export class MetaEntityService {
logoImageUrl: instance.logoImageUrl,
maxNoteTextLength: this.config.maxNoteLength,
maxRemoteNoteTextLength: this.config.maxRemoteNoteLength,
maxCwLength: this.config.maxCwLength,
maxRemoteCwLength: this.config.maxRemoteCwLength,
maxAltTextLength: this.config.maxAltTextLength,
maxRemoteAltTextLength: this.config.maxRemoteAltTextLength,
defaultLightTheme,
......
......@@ -172,6 +172,14 @@ export const packedMetaLiteSchema = {
type: 'number',
optional: false, nullable: false,
},
maxCwLength: {
type: 'number',
optional: false, nullable: false,
},
maxRemoteCwLength: {
type: 'number',
optional: false, nullable: false,
},
maxAltTextLength: {
type: 'number',
optional: false, nullable: false,
......
......@@ -123,6 +123,8 @@ export class NodeinfoServerService {
enableTurnstile: meta.enableTurnstile,
maxNoteTextLength: this.config.maxNoteLength,
maxRemoteNoteTextLength: this.config.maxRemoteNoteLength,
maxCwLength: this.config.maxCwLength,
maxRemoteCwLength: this.config.maxRemoteCwLength,
maxAltTextLength: this.config.maxAltTextLength,
maxRemoteAltTextLength: this.config.maxRemoteAltTextLength,
enableEmail: meta.enableEmail,
......
......@@ -5154,6 +5154,8 @@ export type components = {
sidebarLogoUrl: string | null;
maxNoteTextLength: number;
maxRemoteNoteTextLength: number;
maxCwLength: number;
maxRemoteCwLength: number;
maxAltTextLength: number;
maxRemoteAltTextLength: number;
ads: {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment