From 08f0784ec6247da055b3d07835aa089333de0bcb Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Sun, 17 Oct 2010 18:26:48 +0200 Subject: [PATCH] Update time when inserting, store time in insert. --- src/main/java/net/pterodactylus/sone/core/SoneInserter.java | 1 + src/main/resources/templates/insert/sone.xml | 1 + 2 files changed, 2 insertions(+) diff --git a/src/main/java/net/pterodactylus/sone/core/SoneInserter.java b/src/main/java/net/pterodactylus/sone/core/SoneInserter.java index ac2cb3f..259667b 100644 --- a/src/main/java/net/pterodactylus/sone/core/SoneInserter.java +++ b/src/main/java/net/pterodactylus/sone/core/SoneInserter.java @@ -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()); } } diff --git a/src/main/resources/templates/insert/sone.xml b/src/main/resources/templates/insert/sone.xml index 704c415..2469e49 100644 --- a/src/main/resources/templates/insert/sone.xml +++ b/src/main/resources/templates/insert/sone.xml @@ -3,6 +3,7 @@ <% currentSone.id> <% currentSone.name|xml> + <% currentSone.profile.firstName|xml> -- 2.7.4