From 27a67445c9a23c87332c04f1c8a43dc0572c2c45 Mon Sep 17 00:00:00 2001 From: Thomas Date: Mon, 25 Jul 2022 16:01:00 +0200 Subject: [PATCH] Comment issue #276 - Only fetch OG when there is only a URL. --- app/src/main/java/app/fedilab/android/BaseMainActivity.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/app/fedilab/android/BaseMainActivity.java b/app/src/main/java/app/fedilab/android/BaseMainActivity.java index 7da81ea1..03127838 100644 --- a/app/src/main/java/app/fedilab/android/BaseMainActivity.java +++ b/app/src/main/java/app/fedilab/android/BaseMainActivity.java @@ -308,7 +308,7 @@ public abstract class BaseMainActivity extends BaseActivity implements NetworkSt if (matchStart < matchEnd && sharedText.length() >= matchEnd) url[0] = sharedText.substring(matchStart, matchEnd); } - if (url[0] != null) { + if (url[0] != null && url[0].length() == sharedText.length()) { new Thread(() -> { if (url[0].startsWith("www.")) url[0] = "http://" + url[0];