소스 검색

Fix RSS by actually providing timestamps to new posts

George S. Baugh 5 년 전
부모
커밋
f20add80be
2개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 0 0
      data/DUMMY-dist.json
  2. 1 0
      lib/Trog/Data/DUMMY.pm

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 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];

이 변경점에서 너무 많은 파일들이 변경되어 몇몇 파일들은 표시되지 않았습니다.