Added Open Graph site name

This commit is contained in:
M66B 2022-05-31 21:17:49 +02:00
parent fb9f569cf4
commit 1f4590d60b
1 changed files with 4 additions and 0 deletions

View File

@ -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");