From 5479f91a6e9f254b241e74a0823882d713396a37 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Thu, 5 Sep 2024 01:08:19 +0200 Subject: [PATCH] Set maxMediaAttachments to 1000 if Pleroma extensions are detected --- src/utils/store-utils.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/utils/store-utils.js b/src/utils/store-utils.js index 042b2fa0..290c31c3 100644 --- a/src/utils/store-utils.js +++ b/src/utils/store-utils.js @@ -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; }