From: Chip Black Date: Sat, 29 Mar 2014 23:03:09 +0000 (-0500) Subject: Add titles in RSS for dumb aggregators X-Git-Tag: v1.9~4 X-Git-Url: http://git.bytex64.net/?a=commitdiff_plain;h=80f127255efae0672992f9e8d7673ae9f154f3e6;hp=74799006801178ec48185e2e058772b876920d5d;p=blerg.git Add titles in RSS for dumb aggregators --- diff --git a/rss.cgi b/rss.cgi index 3bc6172..3eed7e2 100755 --- a/rss.cgi +++ b/rss.cgi @@ -108,9 +108,11 @@ HEADER for my $i (@items) { my $author = defined $i->{author} ? $i->{author} : $name; my $data = xml_escape(qq{\@$author
$i->{data}}); + my $title = xml_escape(substr($i->{data}, 0, 27)) . "..."; my $post_time = strftime("%a, %d %b %Y %H:%M:%S %Z", localtime($i->{timestamp})); print < + $title $post_time ${baseurl}get/$author/$i->{record} ${baseurl}#$author/$i->{record}