fix username

This commit is contained in:
Nicolas Constant 2020-11-20 18:59:57 -05:00
parent 01337a63ec
commit f819595aec
No known key found for this signature in database
GPG key ID: 1E9F677FB01A5688

View file

@ -85,7 +85,7 @@ namespace BirdsiteLive.Domain
if (!sigValidation.SignatureIsValidated) return false;
// Save Follow in DB
var followerUserName = sigValidation.User.name.ToLowerInvariant();
var followerUserName = sigValidation.User.preferredUsername.ToLowerInvariant();
var followerHost = sigValidation.User.url.Replace("https://", string.Empty).Split('/').First();
var followerInbox = sigValidation.User.inbox;
var followerSharedInbox = sigValidation.User?.endpoints?.sharedInbox;