aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--juick-common/src/main/java/com/juick/util/MessageUtils.java2
-rw-r--r--juick-server/src/test/java/com/juick/server/tests/ServerTests.java2
2 files changed, 2 insertions, 2 deletions
diff --git a/juick-common/src/main/java/com/juick/util/MessageUtils.java b/juick-common/src/main/java/com/juick/util/MessageUtils.java
index 932577cb..5a4b05ca 100644
--- a/juick-common/src/main/java/com/juick/util/MessageUtils.java
+++ b/juick-common/src/main/java/com/juick/util/MessageUtils.java
@@ -281,7 +281,7 @@ public class MessageUtils {
URI uri = URI.create(urlMatcher.group(0));
if (uri.getHost().equals("juick.com")) {
UriComponentsBuilder uriComponentsBuilder = UriComponentsBuilder.fromUri(uri);
- uriComponentsBuilder.replaceQueryParam("hash", StringUtils.EMPTY);
+ uriComponentsBuilder.replaceQueryParam("hash");
input = input.replace(urlMatcher.group(0), uriComponentsBuilder.build().toUriString());
}
}
diff --git a/juick-server/src/test/java/com/juick/server/tests/ServerTests.java b/juick-server/src/test/java/com/juick/server/tests/ServerTests.java
index abdabf4e..d6ef4774 100644
--- a/juick-server/src/test/java/com/juick/server/tests/ServerTests.java
+++ b/juick-server/src/test/java/com/juick/server/tests/ServerTests.java
@@ -801,7 +801,7 @@ public class ServerTests {
"https://juick.com/settings?hash=VTYZkKV8FWkmu6g1", emptyUri);
assertThat(result.getNewMessage().isPresent(), is(true));
assertThat(result.getNewMessage().get().getText(), is("I'm very smart to post my login url there: " +
- "https://juick.com/settings?hash="));
+ "https://juick.com/settings"));
}
@Test
public void mailParserTest() throws Exception {