diff --git a/src/BirdsiteLive.Wikidata/Program.cs b/src/BirdsiteLive.Wikidata/Program.cs
index 9813148..eccbe60 100644
--- a/src/BirdsiteLive.Wikidata/Program.cs
+++ b/src/BirdsiteLive.Wikidata/Program.cs
@@ -39,8 +39,8 @@ foreach (string n in content.Split("\n"))
if (n.Length < 2)
continue;
- var acct = s[1];
- var fedi = s[2];
+ var acct = s[1].ToLower();
+ var fedi = "@" + s[2];
await dal.UpdateTwitterUserFediAcctAsync(acct, fedi);
if (twitterUser.Contains(acct))
Console.WriteLine(fedi);
diff --git a/src/BirdsiteLive/Controllers/UsersController.cs b/src/BirdsiteLive/Controllers/UsersController.cs
index 5392068..395bc17 100644
--- a/src/BirdsiteLive/Controllers/UsersController.cs
+++ b/src/BirdsiteLive/Controllers/UsersController.cs
@@ -141,7 +141,7 @@ namespace BirdsiteLive.Controllers
Protected = user.Protected,
FollowerCount = followers.Length,
MostPopularServer = followers.GroupBy(x => x.Host).OrderByDescending(x => x.Count()).Select(x => x.Key).FirstOrDefault("N/A"),
-
+ FediverseAccount = userDal.FediAcct,
InstanceHandle = $"@{user.Acct.ToLowerInvariant()}@{_instanceSettings.Domain}"
};
return View(displayableUser);
diff --git a/src/BirdsiteLive/Models/DisplayTwitterUser.cs b/src/BirdsiteLive/Models/DisplayTwitterUser.cs
index a91a24d..65652ef 100644
--- a/src/BirdsiteLive/Models/DisplayTwitterUser.cs
+++ b/src/BirdsiteLive/Models/DisplayTwitterUser.cs
@@ -12,5 +12,6 @@
public string MostPopularServer { get; set; }
public string InstanceHandle { get; set; }
+ public string FediverseAccount { get; set; }
}
}
\ No newline at end of file
diff --git a/src/BirdsiteLive/Views/Users/Index.cshtml b/src/BirdsiteLive/Views/Users/Index.cshtml
index a70e847..e1930cd 100644
--- a/src/BirdsiteLive/Views/Users/Index.cshtml
+++ b/src/BirdsiteLive/Views/Users/Index.cshtml
@@ -47,4 +47,13 @@
}
+ @if (ViewData.Model.FediverseAccount != null)
+ {
+
+
+
There is a native fediverse account associated with this Twitter account:
+ +