Site description low priority

pull/207/head
M66B 3 years ago
parent 951bc37521
commit fb9f569cf4

@ -160,10 +160,6 @@ public class FragmentDialogInsertLink extends FragmentDialogBase {
if (title != null && !TextUtils.isEmpty(title.text())) if (title != null && !TextUtils.isEmpty(title.text()))
return title.text(); return title.text();
Element description = doc.select("meta[name=description]").first();
if (description != null && !TextUtils.isEmpty(description.attr("content")))
return description.attr("content");
Element ogTitle = doc.select("meta[property=og:title]").first(); Element ogTitle = doc.select("meta[property=og:title]").first();
if (ogTitle != null && !TextUtils.isEmpty(ogTitle.attr("content"))) if (ogTitle != null && !TextUtils.isEmpty(ogTitle.attr("content")))
return ogTitle.attr("content"); return ogTitle.attr("content");
@ -172,6 +168,10 @@ public class FragmentDialogInsertLink extends FragmentDialogBase {
if (twitterTitle != null && !TextUtils.isEmpty(twitterTitle.attr("content"))) if (twitterTitle != null && !TextUtils.isEmpty(twitterTitle.attr("content")))
return twitterTitle.attr("content"); return twitterTitle.attr("content");
Element description = doc.select("meta[name=description]").first();
if (description != null && !TextUtils.isEmpty(description.attr("content")))
return description.attr("content");
return null; return null;
} finally { } finally {
connection.disconnect(); connection.disconnect();

Loading…
Cancel
Save