diff options
author | Andrew Dolgov <[email protected]> | 2012-08-10 15:02:18 +0400 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2012-08-10 15:02:18 +0400 |
commit | d3253f49aa90a481c97f137987025e401d0b6b01 (patch) | |
tree | 6e58d747a0e3d7f16f7b543738e4f69f4471c253 /classes/feeds.php | |
parent | ab29de3251f4773c6c7e894ef16db16d8d5ae1e0 (diff) |
Revert "add experimental clientside headline clamping (refs #479)"
This reverts commit 26e4b12466208b433fef35946cb61ef9b3e52e45.
Diffstat (limited to 'classes/feeds.php')
-rw-r--r-- | classes/feeds.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/classes/feeds.php b/classes/feeds.php index 23c9e783f..0c9812479 100644 --- a/classes/feeds.php +++ b/classes/feeds.php @@ -378,7 +378,8 @@ 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 = strip_tags($line["content_preview"]);
+ $content_preview = truncate_string(strip_tags($line["content_preview"]),
+ 100);
}
$score = $line["score"];
@@ -457,7 +458,7 @@ class Feeds extends Protected_Handler { $reply['content'] .= "<a id=\"RTITLE-$id\"
href=\"" . htmlspecialchars($line["link"]) . "\"
onclick=\"\">" .
- $line["title"];
+ truncate_string($line["title"], 200);
if (get_pref($this->link, 'SHOW_CONTENT_PREVIEW')) {
if ($content_preview) {
|