From 45b3a5b235b1174b399fba6198ea2e946b274dc9 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Thu, 20 Sep 2012 15:08:10 +0200 Subject: [PATCH] Store shortened URIs in identity. --- src/main/java/de/todesbaum/jsite/application/WebOfTrustInterface.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/de/todesbaum/jsite/application/WebOfTrustInterface.java b/src/main/java/de/todesbaum/jsite/application/WebOfTrustInterface.java index aca8e5e..ea5c6b3 100644 --- a/src/main/java/de/todesbaum/jsite/application/WebOfTrustInterface.java +++ b/src/main/java/de/todesbaum/jsite/application/WebOfTrustInterface.java @@ -206,8 +206,8 @@ public class WebOfTrustInterface implements Runnable { while (message.get("Replies.Identity" + ++identityCounter) != null) { String id = message.get("Replies.Identity" + identityCounter); String nickname = message.get("Replies.Nickname" + identityCounter); - String requestUri = message.get("Replies.RequestURI" + identityCounter); - String insertUri = message.get("Replies.InsertURI" + identityCounter); + String requestUri = shortenUri(message.get("Replies.RequestURI" + identityCounter)); + String insertUri = shortenUri(message.get("Replies.InsertURI" + identityCounter)); DefaultOwnIdentity ownIdentity = new DefaultOwnIdentity(id, nickname, requestUri, insertUri); logger.log(Level.FINE, String.format("Parsed Own Identity %s.", ownIdentity)); ownIdentities.add(ownIdentity); -- 2.7.4