mirror of
https://activitypub.software/TransFem-org/Sharkey
synced 2024-11-21 21:45:11 +00:00
expose CW limit to frontend
This commit is contained in:
parent
01e98c75ab
commit
c5d9bde43f
4 changed files with 14 additions and 0 deletions
|
@ -111,6 +111,8 @@ export class MetaEntityService {
|
||||||
logoImageUrl: instance.logoImageUrl,
|
logoImageUrl: instance.logoImageUrl,
|
||||||
maxNoteTextLength: this.config.maxNoteLength,
|
maxNoteTextLength: this.config.maxNoteLength,
|
||||||
maxRemoteNoteTextLength: this.config.maxRemoteNoteLength,
|
maxRemoteNoteTextLength: this.config.maxRemoteNoteLength,
|
||||||
|
maxCwLength: this.config.maxCwLength,
|
||||||
|
maxRemoteCwLength: this.config.maxRemoteCwLength,
|
||||||
maxAltTextLength: this.config.maxAltTextLength,
|
maxAltTextLength: this.config.maxAltTextLength,
|
||||||
maxRemoteAltTextLength: this.config.maxRemoteAltTextLength,
|
maxRemoteAltTextLength: this.config.maxRemoteAltTextLength,
|
||||||
defaultLightTheme,
|
defaultLightTheme,
|
||||||
|
|
|
@ -172,6 +172,14 @@ export const packedMetaLiteSchema = {
|
||||||
type: 'number',
|
type: 'number',
|
||||||
optional: false, nullable: false,
|
optional: false, nullable: false,
|
||||||
},
|
},
|
||||||
|
maxCwLength: {
|
||||||
|
type: 'number',
|
||||||
|
optional: false, nullable: false,
|
||||||
|
},
|
||||||
|
maxRemoteCwLength: {
|
||||||
|
type: 'number',
|
||||||
|
optional: false, nullable: false,
|
||||||
|
},
|
||||||
maxAltTextLength: {
|
maxAltTextLength: {
|
||||||
type: 'number',
|
type: 'number',
|
||||||
optional: false, nullable: false,
|
optional: false, nullable: false,
|
||||||
|
|
|
@ -123,6 +123,8 @@ export class NodeinfoServerService {
|
||||||
enableTurnstile: meta.enableTurnstile,
|
enableTurnstile: meta.enableTurnstile,
|
||||||
maxNoteTextLength: this.config.maxNoteLength,
|
maxNoteTextLength: this.config.maxNoteLength,
|
||||||
maxRemoteNoteTextLength: this.config.maxRemoteNoteLength,
|
maxRemoteNoteTextLength: this.config.maxRemoteNoteLength,
|
||||||
|
maxCwLength: this.config.maxCwLength,
|
||||||
|
maxRemoteCwLength: this.config.maxRemoteCwLength,
|
||||||
maxAltTextLength: this.config.maxAltTextLength,
|
maxAltTextLength: this.config.maxAltTextLength,
|
||||||
maxRemoteAltTextLength: this.config.maxRemoteAltTextLength,
|
maxRemoteAltTextLength: this.config.maxRemoteAltTextLength,
|
||||||
enableEmail: meta.enableEmail,
|
enableEmail: meta.enableEmail,
|
||||||
|
|
|
@ -5154,6 +5154,8 @@ export type components = {
|
||||||
sidebarLogoUrl: string | null;
|
sidebarLogoUrl: string | null;
|
||||||
maxNoteTextLength: number;
|
maxNoteTextLength: number;
|
||||||
maxRemoteNoteTextLength: number;
|
maxRemoteNoteTextLength: number;
|
||||||
|
maxCwLength: number;
|
||||||
|
maxRemoteCwLength: number;
|
||||||
maxAltTextLength: number;
|
maxAltTextLength: number;
|
||||||
maxRemoteAltTextLength: number;
|
maxRemoteAltTextLength: number;
|
||||||
ads: {
|
ads: {
|
||||||
|
|
Loading…
Reference in a new issue