Add support for preferredUsername
in AP preview
Committed 340e31
--- a/webint_search/templates/results.html
+++ b/webint_search/templates/results.html
$ photos = [photos]
<img src=$photos[0]["url"] style=width:100%>
<div>
- <p style=margin:0><big><strong>$profile["name"]</strong></big><br>
+ <p style=margin:0><big><strong>
+ $ name = profile.get("name")
+ $ preferred_username = profile.get("preferredUsername")
+ $if name:
+ $profile["name"]
+ $if name and preferred_username:
+ <small>(
+ $if preferred_username:
+ $profile["preferredUsername"]
+ $if name and preferred_username:
+ )</small>
+ </strong></big><br>
$if "url" in profile:
$ urls = profile["url"]
$if not isinstance(urls, list):
<a href=$url>$url</a>
$if not loop.last:
•
- </small></p>
+ </small>
+ </p>
<div class=profile_summary>$:profile["summary"]</div>
$if "tag" in profile:
<div style=font-size:.8em>