X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fdisplay.php;h=1f1fd112048f63e31077448ebde723341f39bdf9;hb=a941199760420298d5977b285e2016d860b1e073;hp=115feb0ce52c84550b2d7e4b83442dd088e6670d;hpb=05a2989ecbb290188c4dcc280fc93483a9852645;p=friendica.git diff --git a/mod/display.php b/mod/display.php index 115feb0ce5..1f1fd11204 100644 --- a/mod/display.php +++ b/mod/display.php @@ -420,11 +420,17 @@ function display_content(App $a, $update = 0) { $title = trim(html2plain(bbcode($r[0]["title"], false, false), 0, true)); $author_name = $r[0]["author-name"]; - $image = $a->remove_baseurl($r[0]["thumb"]); + $image = $a->remove_baseurl($r[0]["author-thumb"]); if ($title == "") { $title = $author_name; } + + // Limit the description to 160 characters + if (strlen($description) > 160) { + $description = substr($description, 0, 157) . '...'; + } + $description = htmlspecialchars($description, ENT_COMPAT, 'UTF-8', true); // allow double encoding here $title = htmlspecialchars($title, ENT_COMPAT, 'UTF-8', true); // allow double encoding here $author_name = htmlspecialchars($author_name, ENT_COMPAT, 'UTF-8', true); // allow double encoding here