X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=mod%2Fdisplay.php;h=ca6809eba14c6fb9b34c359d2f4db172ce83417f;hb=47bd3243cdb4a4840ca4d40452402a86b792ce1b;hp=c98d936a0f45dd6c01676709d7cf88947406b59c;hpb=17858bd8443e0384602b71478fd0b1a00cfeafb1;p=friendica.git diff --git a/mod/display.php b/mod/display.php index c98d936a0f..ca6809eba1 100644 --- a/mod/display.php +++ b/mod/display.php @@ -1,6 +1,8 @@ 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