diff --git a/app/src/main/java/eu/toldi/infinityforlemmy/utils/LemmyUtils.java b/app/src/main/java/eu/toldi/infinityforlemmy/utils/LemmyUtils.java index e07c908e..d67cf6d1 100644 --- a/app/src/main/java/eu/toldi/infinityforlemmy/utils/LemmyUtils.java +++ b/app/src/main/java/eu/toldi/infinityforlemmy/utils/LemmyUtils.java @@ -5,7 +5,7 @@ public class LemmyUtils { String[] splitURL = url.split("/"); String userName = splitURL[splitURL.length - 1]; String domain = splitURL[2]; - return userName + "@" + domain; + return (userName.contains("@")) ? userName : userName + "@" + domain; } public static String qualifiedCommunityName2ActorId(String qualifiedName) {