mirror of
https://github.com/friendica/friendica
synced 2025-04-24 08:30:11 +00:00
Fix pixture posts to connectors / fix delivery counter for connector posts
This commit is contained in:
parent
f4d20c577b
commit
16b9d9f199
2 changed files with 13 additions and 5 deletions
|
@ -252,7 +252,9 @@ class BBCode extends BaseObject
|
|||
if (preg_match_all("(\[url=([$URLSearchString]*)\]\s*\[img\]([$URLSearchString]*)\[\/img\]\s*\[\/url\])ism", $body, $pictures, PREG_SET_ORDER)) {
|
||||
if ((count($pictures) == 1) && !$has_title) {
|
||||
if (!empty($item['object-type']) && ($item['object-type'] == ACTIVITY_OBJ_IMAGE)) {
|
||||
$data = ['url' => $pictures[0][1], 'type' => 'photo'];
|
||||
// Replace the preview picture with the real picture
|
||||
$url = str_replace('-1.', '-0.', $pictures[0][2]);
|
||||
$data = ['url' => $url, 'type' => 'photo'];
|
||||
} else {
|
||||
// Checking, if the link goes to a picture
|
||||
$data = ParseUrl::getSiteinfoCached($pictures[0][1], true);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue