Changeset 1211
- Timestamp:
- 08/07/06 15:49:19
- Files:
-
- trunk/plagger/lib/Plagger/Feed.pm (modified) (1 diff)
- trunk/plagger/lib/Plagger/Plugin/Publish/Feed.pm (modified) (2 diffs)
- trunk/plagger/t/plugins/Publish-Feed/atom1-valid.t (added)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/plagger/lib/Plagger/Feed.pm
r1210 r1211 118 118 _is_same_domain($permalink, $_->source->url), # permalink and $feed->url is the same domain 119 119 _is_same_domain($permalink, $_->source->link), # permalink and $feed->link is the same domain 120 ($_->date ? ($now - $_->date->epoch) : 0), # Older entry date is prioritized120 ($_->date ? ($now - $_->date->epoch) : 0), # Older entry date is prioritized 121 121 length($_->body || ''), # Prioritize full content feed 122 122 ] } @entries; trunk/plagger/lib/Plagger/Plugin/Publish/Feed.pm
r1173 r1211 52 52 $feed->generator("Plagger/$Plagger::VERSION"); 53 53 54 if ($feed_format eq 'Atom') { 55 $feed->{atom}->id("tag:plagger.org,2006:" . $f->id); 56 } 57 54 58 # add entry 55 59 for my $e ($f->entries) { … … 58 62 $entry->link($e->link); 59 63 $entry->summary($e->body_text) if defined $e->body; 60 $entry->content( $e->body)64 $entry->content( XML::Feed::Content->new({ body => $e->body, type => 'xhtml' }) ) 61 65 if $self->conf->{full_content} && defined $e->body; 62 66 $entry->category(join(' ', @{$e->tags})); 63 $entry->issued($e->date) if $e->date; 67 $entry->issued($e->date) if $e->date; 68 $entry->modified($e->date) if $e->date; 64 69 $entry->author($e->author); 70 $entry->id("tag:plagger.org,2006:" . $e->id); 65 71 66 72 if ($e->has_enclosure) {
