1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2025-01-01 12:44:42 +00:00

Added Open Graph site name

This commit is contained in:
M66B 2022-05-31 21:17:49 +02:00
parent fb9f569cf4
commit 1f4590d60b

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