Changeset 294 for wiki-toolkit/trunk/lib/Wiki/Toolkit/Feed/RSS.pm
- Timestamp:
- 05/18/06 16:44:39 (6 years ago)
- Files:
-
- 1 modified
-
wiki-toolkit/trunk/lib/Wiki/Toolkit/Feed/RSS.pm (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wiki-toolkit/trunk/lib/Wiki/Toolkit/Feed/RSS.pm
r293 r294 154 154 my (@urls, @items); 155 155 156 foreach my $ change (@nodes)157 { 158 my $node_name = $ change->{name};159 160 my $timestamp = $ change->{last_modified};156 foreach my $node (@nodes) 157 { 158 my $node_name = $node->{name}; 159 160 my $timestamp = $node->{last_modified}; 161 161 162 162 # Make a Time::Piece object. … … 167 167 $timestamp = $time->strftime( "%Y-%m-%dT%H:%M:%S$utc_offset" ); 168 168 169 my $author = $ change->{metadata}{username}[0] || $change->{metadata}{host}[0] || '';170 my $description = $ change->{metadata}{comment}[0] || '';169 my $author = $node->{metadata}{username}[0] || $node->{metadata}{host}[0] || ''; 170 my $description = $node->{metadata}{comment}[0] || ''; 171 171 172 172 $description .= " [$author]" if $author; 173 173 174 my $version = $ change->{version};174 my $version = $node->{version}; 175 175 my $status = (1 == $version) ? 'new' : 'updated'; 176 176 177 my $major_change = $ change->{metadata}{major_change}[0];177 my $major_change = $node->{metadata}{major_change}[0]; 178 178 $major_change = 1 unless defined $major_change; 179 179 my $importance = $major_change ? 'major' : 'minor'; … … 239 239 } 240 240 241 =item B<rss_timestamp> 242 243 Generate the timestamp for the RSS, by figuring out the age range of 244 the source data for the feed 245 246 =cut 241 247 sub rss_timestamp 242 248 {
