Update time when inserting, store time in insert.
[Sone.git] / src / main / java / net / pterodactylus / sone / core / SoneInserter.java
index ac2cb3f..259667b 100644 (file)
@@ -99,6 +99,7 @@ public class SoneInserter extends AbstractService {
                        synchronized (sone) {
                                modificationCounter = sone.getModificationCounter();
                                if (modificationCounter > 0) {
+                                       sone.setTime(System.currentTimeMillis());
                                        insertInformation = new InsertInformation(sone.getRequestUri(), sone.getInsertUri());
                                }
                        }