Changeset 3660
- Timestamp:
- 12/28/07 10:32:52 (13 months ago)
- Location:
- lang/perl/Jipotter/trunk
- Files:
-
- 2 modified
-
Makefile.PL (modified) (1 diff)
-
lib/Jipotter/Model/Status.pm (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lang/perl/Jipotter/trunk/Makefile.PL
r1513 r3660 14 14 requires 'Time::Piece'; 15 15 requires 'Time::Seconds'; 16 requires 'WWW:: Shorten::TinyURL';16 requires 'WWW::Lengthen'; 17 17 requires 'URI'; 18 18 -
lang/perl/Jipotter/trunk/lib/Jipotter/Model/Status.pm
r1946 r3660 6 6 use URI; 7 7 use HTML::Entities; 8 use WWW::Shorten::TinyURL; 8 use WWW::Lengthen; 9 10 my $lengthener = WWW::Lengthen->new; 9 11 10 12 use Jifty::DBI::Schema; … … 41 43 42 44 sub _convert_uri { 43 my $uri = URI->new( decode_entities( shift) );45 my $uri = URI->new( $lengthener->try( decode_entities( shift ) ) ); 44 46 45 if ( $uri->authority eq 'tinyurl.com' ) {46 $uri = URI->new( makealongerlink( "$uri" ) );47 }48 47 return q{<a href="}."$uri".q{">}. 49 48 encode_entities("$uri", "\000-\377").q{</a>};
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)