Added Open Graph site name

pull/207/head
M66B 3 years ago
parent fb9f569cf4
commit 1f4590d60b

@ -168,6 +168,10 @@ public class FragmentDialogInsertLink extends FragmentDialogBase {
if (twitterTitle != null && !TextUtils.isEmpty(twitterTitle.attr("content")))
return twitterTitle.attr("content");
Element ogSiteName = doc.select("meta[property=og:site_name]").first();
if (ogSiteName != null && !TextUtils.isEmpty(ogSiteName.attr("content")))
return ogSiteName.attr("content");
Element description = doc.select("meta[name=description]").first();
if (description != null && !TextUtils.isEmpty(description.attr("content")))
return description.attr("content");

Loading…
Cancel
Save