]> Sergey Matveev's repositories - public-inbox.git/blobdiff - lib/PublicInbox/Inbox.pm
wwwstream: drop tor2web URL
[public-inbox.git] / lib / PublicInbox / Inbox.pm
index cde46258d02d630135f4efb12ba7b3d94178462e..0d28dd04023e95338e456c8ac2f7403f71bcca12 100644 (file)
@@ -333,4 +333,16 @@ sub recent {
        search($self)->{over_ro}->recent($opts, $after, $before);
 }
 
+sub modified {
+       my ($self) = @_;
+       if (my $srch = search($self)) {
+               my $msgs = $srch->{over_ro}->recent({limit => 1});
+               if (my $smsg = $msgs->[0]) {
+                       return $smsg->{ts};
+               }
+               return time;
+       }
+       git($self)->modified; # v1
+}
+
 1;