Skip to content

Commit

Permalink
Fixed XRI claimed identifier handling.
Browse files Browse the repository at this point in the history
  • Loading branch information
AArnott committed Sep 5, 2008
1 parent b6abeed commit dcd1cfc
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion source/newtelligence.DasBlog.Web/CommentViewBox.ascx.cs
Expand Up @@ -77,7 +77,15 @@ public CommentViewBox()
if (requestPage.SiteConfig.AllowOpenIdComments == true) {
ClaimsResponse fetch = e.Response.GetExtension(typeof(ClaimsResponse)) as ClaimsResponse;
string nick = e.Response.ClaimedIdentifier;
string homepage = e.Response.ClaimedIdentifier;
string homepage;
if (e.Response.ClaimedIdentifier.ToString().StartsWith("http"))
{
homepage = e.Response.ClaimedIdentifier;
}
else
{
homepage = "http://xri.net/" + e.Response.ClaimedIdentifier;
}
string email = "none@none.com";
if (fetch != null) {
nick = string.IsNullOrEmpty(fetch.Nickname) ? fetch.FullName : fetch.Nickname;
Expand Down

0 comments on commit dcd1cfc

Please sign in to comment.