diff options
author | Eric Wong <e@80x24.org> | 2014-04-21 19:29:32 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2014-04-21 19:29:32 +0000 |
commit | bd8fd095067b79a0d2a40bbca2b27b923d02b3f8 (patch) | |
tree | 59d8fc7829bf45ca5e2eb74e8c2dc5deb524a506 /lib | |
parent | fe44219449dd6a6b05abc445f16ebe1b7fbed8c4 (diff) | |
download | public-inbox-bd8fd095067b79a0d2a40bbca2b27b923d02b3f8.tar.gz |
This needs to be cleaned up
Diffstat (limited to 'lib')
-rw-r--r-- | lib/PublicInbox/Feed.pm | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/PublicInbox/Feed.pm b/lib/PublicInbox/Feed.pm index 8cc8b728..3fc3775b 100644 --- a/lib/PublicInbox/Feed.pm +++ b/lib/PublicInbox/Feed.pm @@ -32,7 +32,8 @@ sub generate { local $ENV{GIT_DIR} = $args->{git_dir}; my $feed_opts = get_feedopts($args); - + my $addr = $feed_opts->{address}; + $addr = $addr->[0] if ref($addr); my $feed = XML::Atom::SimpleFeed->new( title => $feed_opts->{description} || "unnamed feed", link => $feed_opts->{url} || "http://example.com/", @@ -41,7 +42,7 @@ sub generate { href => $feed_opts->{atomurl} || "http://example.com/atom.xml", }, - id => $feed_opts->{address} || 'public-inbox@example.com', + id => $addr || 'public-inbox@example.com', updated => POSIX::strftime(DATEFMT, gmtime), ); |