Use post type "photo" for multiple photos as well

pull/10696/head
Michael 2021-09-12 01:58:29 +00:00
rodzic 8628bd5228
commit 6579a3a106
1 zmienionych plików z 7 dodań i 2 usunięć

Wyświetl plik

@ -327,8 +327,13 @@ class BBCode
}
}
} elseif (count($pictures) > 0) {
$post['type'] = 'link';
$post['url'] = $plink;
if (count($pictures) > 4) {
$post['type'] = 'link';
$post['url'] = $plink;
} else {
$post['type'] = 'photo';
}
$post['image'] = $pictures[0][2];
$post['text'] = $body;