Add support for displayName to profiles, so that ugly user IDs on sites like Stack Exchange can be hidden

This commit is contained in:
Danielle McLean 2017-10-10 15:23:30 +11:00
parent bbe563dee7
commit b52a055543
Signed by: 00dani
GPG key ID: 5A5D2D1AFF12EEC5
2 changed files with 5 additions and 1 deletions

View file

@ -22,6 +22,7 @@ Profile
userId UserId
siteId SiteId
username Text sqltype=varchar(255)
displayName Text Maybe sqltype=varchar(255)
Entry
slug Slug

View file

@ -22,4 +22,7 @@
<li>
<a .u-url itemprop="sameAs" rel="me" href="#{substitute template profile}">
<i .fa.fa-#{siteIcon site}>
#{profileUsername profile}
$maybe name <- profileDisplayName profile
#{name}
$nothing
#{profileUsername profile}