From c4eb31ab64627adfdeed2a445d67883371203e99 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Sat, 1 Mar 2014 14:14:13 +0100 Subject: [PATCH] Store the insert URI in the information used for inserting. Contrary to what I believed in in commit c654efce6e59d9bb98d42e74962522d2e3012247, it is actually used for inserting. --- src/main/java/net/pterodactylus/sone/core/SoneInserter.java | 2 ++ 1 file 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 12abc53..8e253ee 100644 --- a/src/main/java/net/pterodactylus/sone/core/SoneInserter.java +++ b/src/main/java/net/pterodactylus/sone/core/SoneInserter.java @@ -20,6 +20,7 @@ package net.pterodactylus.sone.core; import static com.google.common.base.Preconditions.checkArgument; import static net.pterodactylus.sone.data.Album.NOT_EMPTY; import static net.pterodactylus.sone.data.Sone.TO_FREENET_URI; +import static net.pterodactylus.sone.data.Sone.TO_INSERT_URI; import java.io.InputStreamReader; import java.io.StringWriter; @@ -301,6 +302,7 @@ public class SoneInserter extends AbstractService { soneProperties.put("name", sone.getName()); soneProperties.put("time", sone.getTime()); soneProperties.put("requestUri", TO_FREENET_URI.apply(sone)); + soneProperties.put("insertUri", TO_INSERT_URI.apply(sone)); soneProperties.put("profile", sone.getProfile()); soneProperties.put("posts", Ordering.from(Post.TIME_COMPARATOR).sortedCopy(sone.getPosts())); soneProperties.put("replies", Ordering.from(Reply.TIME_COMPARATOR).reverse().sortedCopy(sone.getReplies())); -- 2.7.4