mirror of
https://codeberg.org/Bazsalanszky/Infinity-For-Lemmy.git
synced 2025-01-01 05:47:10 +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[] splitURL = url.split("/");
|
||||||
String userName = splitURL[splitURL.length - 1];
|
String userName = splitURL[splitURL.length - 1];
|
||||||
String domain = splitURL[2];
|
String domain = splitURL[2];
|
||||||
return userName + "@" + domain;
|
return (userName.contains("@")) ? userName : userName + "@" + domain;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static String qualifiedCommunityName2ActorId(String qualifiedName) {
|
public static String qualifiedCommunityName2ActorId(String qualifiedName) {
|
||||||
|
Loading…
Reference in New Issue
Block a user