George S. Baugh 4 лет назад
Родитель
Сommit
4abed4f841
1 измененных файлов с 5 добавлено и 0 удалено
  1. 5 0
      lib/Trog/DataModule.pm

+ 5 - 0
lib/Trog/DataModule.pm

@@ -194,6 +194,11 @@ sub _dedup_versions ($version=-1, @posts) {
         my $version_max = List::Util::max(map { $_->{version } } @ofid);
         $posts_deduped{$id} = $ofid[0];
         $posts_deduped{$id}{version_max} = $version_max;
+        # Show orig creation date, and original author.
+        # XXX this doesn't show the mtime correctly for whatever reason, so I'm omitting it from the interface
+        $posts_deduped{$id}{modified} = $ofid[0]{created};
+        $posts_deduped{$id}{created}  = $ofid[-1]{created};
+        $posts_deduped{$id}{author}   = $ofid[-1]{author};
     }
     my @deduped = @posts_deduped{@uniqids};