mirror of
https://github.com/cheeaun/phanpy.git
synced 2025-02-02 06:06:41 +01:00
Set maxMediaAttachments to 1000 if Pleroma extensions are detected
This commit is contained in:
parent
35ef1b58cf
commit
5479f91a6e
1 changed files with 5 additions and 0 deletions
|
@ -130,6 +130,11 @@ function getInstanceConfiguration(instance) {
|
|||
if (maxMediaAttachments) {
|
||||
statuses.maxMediaAttachments ??= maxMediaAttachments;
|
||||
}
|
||||
if(pleroma) {
|
||||
// Set an arbitrary high attachment limit, since neither Akkoma nor Pleroma have an attachment limit.
|
||||
statuses.maxMediaAttachments ??= 1000;
|
||||
}
|
||||
|
||||
if (maxTootChars) {
|
||||
statuses.maxCharacters ??= maxTootChars;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue