1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 11:55:56 +00:00

add experimental clientside headline clamping (refs #479)

This commit is contained in:
Andrew Dolgov
2012-08-09 13:08:07 +04:00
parent 18e8dc12d9
commit 26e4b12466
3 changed files with 27 additions and 4 deletions

View File

@@ -378,8 +378,7 @@ class Feeds extends Protected_Handler {
$updated_fmt = make_local_datetime($this->link, $line["updated_noms"], false);
if (get_pref($this->link, 'SHOW_CONTENT_PREVIEW')) {
$content_preview = truncate_string(strip_tags($line["content_preview"]),
100);
$content_preview = strip_tags($line["content_preview"]);
}
$score = $line["score"];
@@ -458,7 +457,7 @@ class Feeds extends Protected_Handler {
$reply['content'] .= "<a id=\"RTITLE-$id\"
href=\"" . htmlspecialchars($line["link"]) . "\"
onclick=\"\">" .
truncate_string($line["title"], 200);
$line["title"];
if (get_pref($this->link, 'SHOW_CONTENT_PREVIEW')) {
if ($content_preview) {