Set maxMediaAttachments to 1000 if Pleroma extensions are detected

This commit is contained in:
Stefano Pigozzi 2024-09-05 01:08:19 +02:00
parent 35ef1b58cf
commit 5479f91a6e
No known key found for this signature in database
GPG key ID: 5ADA3868646C3FC0

View file

@ -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;
}