Changeset 1897
- Timestamp:
- 12/02/06 06:17:42
- Files:
-
- trunk/plagger/lib/Plagger/Plugin/Bundle/Planet.pm (modified) (1 diff)
- trunk/plagger/lib/Plagger/Plugin/Publish/Feed.pm (modified) (3 diffs)
- trunk/plagger/t/99-pod-spell.t (modified) (1 diff)
- trunk/plagger/t/plugins/Bundle-Planet/bundle.t (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/plagger/lib/Plagger/Plugin/Bundle/Planet.pm
r1876 r1897 89 89 filename => 'atom.xml', 90 90 format => 'Atom', 91 taguri_base => URI->new($self->conf->{url})->host, 91 92 }, 92 93 }); trunk/plagger/lib/Plagger/Plugin/Publish/Feed.pm
r1865 r1897 52 52 if $f->primary_author; 53 53 54 my $taguri_base = $self->conf->{taguri_base} || do { 55 require Sys::Hostname; 56 Sys::Hostname::hostname(); 57 }; 58 54 59 if ($feed_format eq 'Atom') { 55 $feed->{atom}->id("tag: plagger.org,2006:" . $f->id); # XXX what if id is empty?60 $feed->{atom}->id("tag:$taguri_base,2006:" . $f->id); # XXX what if id is empty? 56 61 } 57 62 … … 86 91 } 87 92 88 $entry->id("tag: plagger.org,2006:" . $e->id);93 $entry->id("tag:$taguri_base,2006:" . $e->id); 89 94 90 95 if ($e->has_enclosure) { … … 210 215 Whether to publish full content feed. Defaults to 1. 211 216 217 =item taguri_base 218 219 Domain name to use with Tag URI base for Atom feed IDs. If it's not 220 set, the domain is grabbed using Sys::Hostname module. Optional. 221 212 222 =back 213 223 214 224 =head1 AUTHOR 215 225 226 Tatsuhiko Miyagawa 227 228 =head1 CONTRIBUTORS 229 216 230 Yoshiki Kurihara 217 231 218 Tatsuhiko Miyagawa219 220 232 Gosuke Miyashita 221 233 trunk/plagger/t/99-pod-spell.t
r1852 r1897 68 68 HatenaGroup 69 69 HatenaRSS 70 IDs 70 71 IE 71 72 IKC trunk/plagger/t/plugins/Bundle-Planet/bundle.t
r1483 r1897 45 45 file_contains("$main::dir/index.html", qr(href="http://planet.plagger.org/foafroll.xml")); 46 46 file_contains("$main::dir/atom.xml", qr!href="http://planet.plagger.org/"!); 47 file_contains("$main::dir/atom.xml", qr!tag:planet.plagger.org!); 47 48 file_contains("$main::dir/rss.xml", qr!<link>http://planet.plagger.org/</link>!); 48 49 file_contains("$main::dir/subscriptions.opml", qr!<head>\s*<title>Planet Foobar</title>!);
