Commit 57f19533 authored by Luc Didry's avatar Luc Didry

Modify id of items in atom feed

parent e8a21ef9
Pipeline #34875 passed with stages
in 1 minute 35 seconds
......@@ -47,7 +47,6 @@ my $license = $config->{license};
my $index = open_index();
## Atom feed
$url = Mojo::URL->new($config->{public_url});
my $iso = DateTime::Format::RFC3339->format_datetime(DateTime->now());
my $feed = XML::Atom::SimpleFeed->new(
title => $config->{title},
......@@ -316,7 +315,7 @@ $urls->each(
## Create entries for the atom feed
push @entries, {
title => "$date $time",
id => "$url#$id",
id => $id,
updated => DateTime::Format::RFC3339->format_datetime($dt),
content => $append
};
......@@ -348,7 +347,7 @@ $en->each(
my ($e, $num) = @_;
$feed->add_entry(
title => $e->{title},
id => $e->{id},
id => Mojo::URL->new($config->{public_url})->to_string.'#'.$e->{id},
updated => $e->{updated},
content => $e->{content},
);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment