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:
parent
fb9f569cf4
commit
1f4590d60b
1 changed files with 4 additions and 0 deletions
|
@ -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…
Reference in a new issue