From 3adbed372c47cbca369253148896bc699985dd8a Mon Sep 17 00:00:00 2001 From: Christian Weiske Date: Thu, 25 Oct 2012 07:46:29 +0200 Subject: set correct update time when the user edits the paste --- src/phorkie/Repository/Post.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/phorkie/Repository/Post.php b/src/phorkie/Repository/Post.php index fe6858b..408cb00 100644 --- a/src/phorkie/Repository/Post.php +++ b/src/phorkie/Repository/Post.php @@ -156,7 +156,12 @@ class Repository_Post if ($bNew) { $db->getIndexer()->addRepo($this->repo); } else { - $db->getIndexer()->updateRepo($this->repo); + $commits = $this->repo->getHistory(); + $db->getIndexer()->updateRepo( + $this->repo, + $commits[count($commits)-1]->committerTime, + $commits[0]->committerTime + ); } } -- cgit v1.2.3