diff options
author | Michael Meer <michael@meer.name> | 2014-01-24 11:59:15 +0100 |
---|---|---|
committer | Michael Meer <michael@meer.name> | 2014-01-24 11:59:15 +0100 |
commit | 844df110586e6726581c620754fef5419f6bea5e (patch) | |
tree | c0d8cb4bd3ad946ca91fed3d5d90227d796c0bfe /include/conversation.php | |
parent | a2b07ed2814972507bf971a5ac6ed09c399e29e7 (diff) | |
parent | 21f6549204f60670af55c7ba22a00f7d7eae9c2b (diff) | |
download | volse-hubzilla-844df110586e6726581c620754fef5419f6bea5e.tar.gz volse-hubzilla-844df110586e6726581c620754fef5419f6bea5e.tar.bz2 volse-hubzilla-844df110586e6726581c620754fef5419f6bea5e.zip |
Merge branch 'master' of https://github.com/friendica/red
to be in sync with master repro
Diffstat (limited to 'include/conversation.php')
-rw-r--r-- | include/conversation.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/conversation.php b/include/conversation.php index 46a01d3c9..cec5993b6 100644 --- a/include/conversation.php +++ b/include/conversation.php @@ -1301,7 +1301,8 @@ function prepare_page($item) { $naked = ((get_pconfig($item['uid'],'system','nakedpage')) ? 1 : 0); $observer = $a->get_observer(); $zid = ($observer['xchan_addr']); - $preview = substr(urlencode($item['body']), 0, 100); + //240 chars is the longest we can have before we start hitting problems with suhosin sites + $preview = substr(urlencode($item['body']), 0, 240); $link = z_root() . '/' . $a->cmd; if(array_key_exists('webpage',$a->layout) && array_key_exists('authored',$a->layout['webpage'])) { if($a->layout['webpage']['authored'] === 'none') @@ -1316,7 +1317,7 @@ function prepare_page($item) { '$title' => smilies(bbcode($item['title'])), '$body' => prepare_body($item,true), '$preview' => $preview, - '$link' => $link + '$link' => $link, )); } |