diff options
author | Vitaly Takmazov | 2022-12-22 05:43:40 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2022-12-22 05:43:40 +0300 |
commit | f8406131fdbe835c52fd46ad68ddc7b0df54cffe (patch) | |
tree | 9ded6a40956ce2f45705c1975b9109aa1fa63159 /src/test/java/com/juick/server/tests/ServerTests.java | |
parent | d4df81c28908c593c2b59f2596e4e380492b32d0 (diff) |
`@username@example.com` urls are now redirects to ActivityPub profile
Diffstat (limited to 'src/test/java/com/juick/server/tests/ServerTests.java')
-rw-r--r-- | src/test/java/com/juick/server/tests/ServerTests.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/test/java/com/juick/server/tests/ServerTests.java b/src/test/java/com/juick/server/tests/ServerTests.java index a892bcf4..38eace7c 100644 --- a/src/test/java/com/juick/server/tests/ServerTests.java +++ b/src/test/java/com/juick/server/tests/ServerTests.java @@ -2768,4 +2768,10 @@ public class ServerTests { public void shareUrlShouldRedirectToPost() throws Exception { mockMvc.perform(get("/share?text=Hello\nWorld")).andExpect(redirectedUrl("/post?body=Hello%0AWorld")); } + @Test + public void mentionUrlsShouldRedirectToExternalUser() throws Exception { + mockMvc.perform(get("/mention?username=vt@juick.com")).andExpect( + redirectedUrl("https://juick.com/vt/") + ); + } } |