Explorar o código

Fix RSS by actually providing timestamps to new posts

George S. Baugh %!s(int64=5) %!d(string=hai) anos
pai
achega
f20add80be
Modificáronse 2 ficheiros con 1 adicións e 0 borrados
  1. 0 0
      data/DUMMY-dist.json
  2. 1 0
      lib/Trog/Data/DUMMY.pm

A diferenza do arquivo foi suprimida porque é 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];

Algúns arquivos non se mostraron porque demasiados arquivos cambiaron neste cambio