From: David ‘Bombe’ Roden Date: Sun, 17 Oct 2010 16:26:48 +0000 (+0200) Subject: Update time when inserting, store time in insert. X-Git-Tag: 0.1-RC1~262 X-Git-Url: https://git.pterodactylus.net/?p=Sone.git;a=commitdiff_plain;h=08f0784ec6247da055b3d07835aa089333de0bcb Update time when inserting, store time in insert. --- 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>