mirror of
https://github.com/friendica/friendica
synced 2024-12-22 23:11:28 +01:00
Merge pull request #10696 from annando/photo-type
Use post type "photo" for multiple photos as well
This commit is contained in:
commit
e3a2f17f9f
1 changed files with 7 additions and 2 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue