diff --git a/source/DasBlog.Web.Repositories/ActivityPubManager.cs b/source/DasBlog.Web.Repositories/ActivityPubManager.cs index 90595f846..4416cc0cb 100644 --- a/source/DasBlog.Web.Repositories/ActivityPubManager.cs +++ b/source/DasBlog.Web.Repositories/ActivityPubManager.cs @@ -97,24 +97,12 @@ public WebFinger WebFinger(string resource) { mastodonAccount = mastodonAccount.Remove(0, 1); } - - var address = new MailAddress(resource); - if (string.Compare(address.User, mastodonAccount, StringComparison.InvariantCultureIgnoreCase) != 0) - { - return null; - } if (!mastodonUrl.Contains("://")) { mastodonUrl = "https://" + mastodonUrl; } - var host = new Uri(mastodonUrl); - if (string.Compare(address.Host, host.Host, StringComparison.InvariantCultureIgnoreCase) != 0) - { - return null; - } - var mastotonSiteUri = new Uri(mastodonUrl); string usersUrl = new Uri(mastotonSiteUri, $"users/{mastodonAccount}").AbsoluteUri; string accountUrl = new Uri(mastotonSiteUri, $"@{mastodonAccount}").AbsoluteUri;