Use post type "photo" for multiple photos as well
This commit is contained in:
@@ -327,8 +327,13 @@ class BBCode
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
} elseif (count($pictures) > 0) {
|
} elseif (count($pictures) > 0) {
|
||||||
|
if (count($pictures) > 4) {
|
||||||
$post['type'] = 'link';
|
$post['type'] = 'link';
|
||||||
$post['url'] = $plink;
|
$post['url'] = $plink;
|
||||||
|
} else {
|
||||||
|
$post['type'] = 'photo';
|
||||||
|
}
|
||||||
|
|
||||||
$post['image'] = $pictures[0][2];
|
$post['image'] = $pictures[0][2];
|
||||||
$post['text'] = $body;
|
$post['text'] = $body;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user