Add support for displayName to profiles, so that ugly user IDs on sites like Stack Exchange can be hidden
This commit is contained in:
parent
bbe563dee7
commit
b52a055543
2 changed files with 5 additions and 1 deletions
|
@ -22,6 +22,7 @@ Profile
|
||||||
userId UserId
|
userId UserId
|
||||||
siteId SiteId
|
siteId SiteId
|
||||||
username Text sqltype=varchar(255)
|
username Text sqltype=varchar(255)
|
||||||
|
displayName Text Maybe sqltype=varchar(255)
|
||||||
|
|
||||||
Entry
|
Entry
|
||||||
slug Slug
|
slug Slug
|
||||||
|
|
|
@ -22,4 +22,7 @@
|
||||||
<li>
|
<li>
|
||||||
<a .u-url itemprop="sameAs" rel="me" href="#{substitute template profile}">
|
<a .u-url itemprop="sameAs" rel="me" href="#{substitute template profile}">
|
||||||
<i .fa.fa-#{siteIcon site}>
|
<i .fa.fa-#{siteIcon site}>
|
||||||
|
$maybe name <- profileDisplayName profile
|
||||||
|
#{name}
|
||||||
|
$nothing
|
||||||
#{profileUsername profile}
|
#{profileUsername profile}
|
||||||
|
|
Loading…
Reference in a new issue