Explorar el Código

Fix RSS by actually providing timestamps to new posts

George S. Baugh hace 5 años
padre
commit
f20add80be
Se han modificado 2 ficheros con 1 adiciones y 0 borrados
  1. 0 0
      data/DUMMY-dist.json
  2. 1 0
      lib/Trog/Data/DUMMY.pm

La diferencia del archivo ha sido suprimido porque es demasiado grande
+ 0 - 0
data/DUMMY-dist.json


+ 1 - 0
lib/Trog/Data/DUMMY.pm

@@ -207,6 +207,7 @@ sub add ($self, @posts) {
     my $example_posts = _read();
     foreach my $post (@posts) {
         $post->{id} //= UUID::Tiny::create_uuid_as_string(UUID::Tiny::UUID_V1, UUID::Tiny::UUID_NS_DNS);
+        $post->{created} = time();
         my (undef, $existing_posts) = $self->get( id => $post->{id} );
         if (@$existing_posts) {
             my $existing_post = $existing_posts->[0];

Algunos archivos no se mostraron porque demasiados archivos cambiaron en este cambio