replace embedded images before statustext is shortened
This commit is contained in:
parent
b1e83f331e
commit
ba6f391635
|
@ -1907,6 +1907,9 @@
|
||||||
$html = bbcode(api_clean_plain_items($item['body']), false, false, 2, true);
|
$html = bbcode(api_clean_plain_items($item['body']), false, false, 2, true);
|
||||||
$statusbody = trim(html2plain($html, 0));
|
$statusbody = trim(html2plain($html, 0));
|
||||||
|
|
||||||
|
// handle data: images
|
||||||
|
$statusbody = api_format_items_embeded_images($item,$statusbody);
|
||||||
|
|
||||||
$statustitle = trim($item['title']);
|
$statustitle = trim($item['title']);
|
||||||
|
|
||||||
if (($statustitle != '') and (strpos($statusbody, $statustitle) !== false))
|
if (($statustitle != '') and (strpos($statusbody, $statustitle) !== false))
|
||||||
|
@ -1919,9 +1922,6 @@
|
||||||
|
|
||||||
$statushtml = trim(bbcode($item['body'], false, false));
|
$statushtml = trim(bbcode($item['body'], false, false));
|
||||||
|
|
||||||
// handle data: images
|
|
||||||
|
|
||||||
$statustext = api_format_items_embeded_images($item,$statustext);
|
|
||||||
|
|
||||||
$status = array(
|
$status = array(
|
||||||
'text' => $statustext,
|
'text' => $statustext,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user