Support 5 or more media_attachments from activitypub

This commit is contained in:
KMY 2023-04-07 20:26:52 +09:00
parent 21899ccf3f
commit 1502668ee5
11 changed files with 41 additions and 13 deletions

View file

@ -278,7 +278,7 @@ export function uploadCompose(files) {
dispatch(uploadComposeRequest());
for (const [i, f] of Array.from(files).entries()) {
if (media.size + i > 3) break;
if (media.size + i >= 4) break;
resizeImage(f).then(file => {
const data = new FormData();