diff options
author | millette <millette@controlyourself.ca> | 2008-11-28 16:01:14 -0500 |
---|---|---|
committer | millette <millette@controlyourself.ca> | 2008-11-28 16:01:14 -0500 |
commit | ce0883330306ccb9bd50aef4d7963351284bd698 (patch) | |
tree | 48797bd1dac83f1dd08e39a77f11540f53bed249 /classes/Notice.php | |
parent | 4fca9960cd5388ff2a12472b956e2504a5af7549 (diff) |
shorten urls for posts > 140 chars only, from anywhere. Only show long urls in title attributes for links we shortened ourselves.
darcs-hash:20081128210114-099f7-4e4cde0a983c2ac6d41efb59b46cb7dbf45dc7a6.gz
Diffstat (limited to 'classes/Notice.php')
-rw-r--r-- | classes/Notice.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/classes/Notice.php b/classes/Notice.php index ceec7a2fa..83862ae95 100644 --- a/classes/Notice.php +++ b/classes/Notice.php @@ -127,7 +127,7 @@ class Notice extends Memcached_DataObject $notice->reply_to = $reply_to; $notice->created = common_sql_now(); - $notice->content = $content; + $notice->content = common_shorten_links($content); $notice->rendered = common_render_content($notice->content, $notice); $notice->source = $source; $notice->uri = $uri; |