mirror of
https://github.com/friendica/friendica
synced 2025-04-25 22:30:10 +00:00
API: Better support of picture links
This commit is contained in:
parent
83c89bf17c
commit
bc69e57636
2 changed files with 76 additions and 5 deletions
|
@ -1625,6 +1625,8 @@
|
|||
if ($include_entities != "true")
|
||||
return array();
|
||||
|
||||
$bbcode = bb_CleanPictureLinks($bbcode);
|
||||
|
||||
// Change pure links in text to bbcode uris
|
||||
$bbcode = preg_replace("/([^\]\='".'"'."]|^)(https?\:\/\/[a-zA-Z0-9\:\/\-\?\&\;\.\=\_\~\#\%\$\!\+\,]+)/ism", '$1[url=$2]$2[/url]', $bbcode);
|
||||
|
||||
|
@ -2392,6 +2394,8 @@ function api_get_nick($profile) {
|
|||
function api_clean_plain_items($Text) {
|
||||
$include_entities = strtolower(x($_REQUEST,'include_entities')?$_REQUEST['include_entities']:"false");
|
||||
|
||||
$Text = bb_CleanPictureLinks($Text);
|
||||
|
||||
if ($include_entities == "true") {
|
||||
$URLSearchString = "^\[\]";
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue