mirror of
https://github.com/friendica/friendica
synced 2025-04-26 03:10:13 +00:00
Fix image links with descriptions in API and AP transmission
This commit is contained in:
parent
babcd24412
commit
1b5fa55bdc
3 changed files with 42 additions and 4 deletions
|
@ -2554,6 +2554,7 @@ function api_get_attachments(&$body)
|
|||
{
|
||||
$text = $body;
|
||||
$text = preg_replace("/\[img\=([0-9]*)x([0-9]*)\](.*?)\[\/img\]/ism", '[img]$3[/img]', $text);
|
||||
$text = preg_replace("/\[img\=(.*?)\](.*?)\[\/img\]/ism", '[img]$1[/img]', $text);
|
||||
|
||||
$URLSearchString = "^\[\]";
|
||||
$ret = preg_match_all("/\[img\]([$URLSearchString]*)\[\/img\]/ism", $text, $images);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue