mirror of
https://codeberg.org/Bazsalanszky/Infinity-For-Lemmy.git
synced 2024-12-29 04:17:12 +01:00
Fix resolving communities from non-home instance URLs
This commit is contained in:
parent
a82f2b68e3
commit
dce5a8d89c
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user