Merge pull request #2680 from fabrixxm/feature-api-update
API: fix plaintext of reshared attachment
This commit is contained in:
commit
1130f11037
1 changed files with 2 additions and 1 deletions
|
@ -3184,7 +3184,6 @@
|
||||||
$include_entities = strtolower(x($_REQUEST,'include_entities')?$_REQUEST['include_entities']:"false");
|
$include_entities = strtolower(x($_REQUEST,'include_entities')?$_REQUEST['include_entities']:"false");
|
||||||
|
|
||||||
$Text = bb_CleanPictureLinks($Text);
|
$Text = bb_CleanPictureLinks($Text);
|
||||||
|
|
||||||
$URLSearchString = "^\[\]";
|
$URLSearchString = "^\[\]";
|
||||||
|
|
||||||
$Text = preg_replace("/([!#@])\[url\=([$URLSearchString]*)\](.*?)\[\/url\]/ism",'$1$3',$Text);
|
$Text = preg_replace("/([!#@])\[url\=([$URLSearchString]*)\](.*?)\[\/url\]/ism",'$1$3',$Text);
|
||||||
|
@ -3223,6 +3222,8 @@
|
||||||
if (isset($data["url"]))
|
if (isset($data["url"]))
|
||||||
$body .= "\n".$data["url"];
|
$body .= "\n".$data["url"];
|
||||||
|
|
||||||
|
$body .= $data["after"];
|
||||||
|
|
||||||
return $body;
|
return $body;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue