Allow opening toots and profile from server-remote accounts

When opening a link with Fedilab, it can be opened as a status (toot) or a profile even if it is an object that is remote to the server it is requested from.
This commit is contained in:
dureuill 2023-10-01 20:50:02 +00:00
parent e735947362
commit b3458e2888
1 changed files with 1 additions and 1 deletions

View File

@ -965,7 +965,7 @@ public abstract class BaseMainActivity extends BaseActivity implements NetworkSt
} }
//Here we know that the intent contains a valid URL //Here we know that the intent contains a valid URL
if (!url.contains("medium.com")) { if (!url.contains("medium.com")) {
Pattern link = Pattern.compile("https?://([\\da-z.-]+[à-ü]?\\.[a-z.]{2,10})/(@[\\w._-]*[0-9]*)(/[0-9]+)?$"); Pattern link = Pattern.compile("https?://([\\da-z.-]+[à-ü]?\\.[a-z.]{2,10})/(@[@\\w._-]*[0-9]*)(/[0-9]+)?$");
Matcher matcherLink; Matcher matcherLink;
matcherLink = link.matcher(url); matcherLink = link.matcher(url);
if (matcherLink.find()) { if (matcherLink.find()) {