File tree Expand file tree Collapse file tree 1 file changed +0
-12
lines changed
source/DasBlog.Web.Repositories Expand file tree Collapse file tree 1 file changed +0
-12
lines changed Original file line number Diff line number Diff line change @@ -97,24 +97,12 @@ public WebFinger WebFinger(string resource)
97
97
{
98
98
mastodonAccount = mastodonAccount . Remove ( 0 , 1 ) ;
99
99
}
100
-
101
- var address = new MailAddress ( resource ) ;
102
- if ( string . Compare ( address . User , mastodonAccount , StringComparison . InvariantCultureIgnoreCase ) != 0 )
103
- {
104
- return null ;
105
- }
106
100
107
101
if ( ! mastodonUrl . Contains ( "://" ) )
108
102
{
109
103
mastodonUrl = "https://" + mastodonUrl ;
110
104
}
111
105
112
- var host = new Uri ( mastodonUrl ) ;
113
- if ( string . Compare ( address . Host , host . Host , StringComparison . InvariantCultureIgnoreCase ) != 0 )
114
- {
115
- return null ;
116
- }
117
-
118
106
var mastotonSiteUri = new Uri ( mastodonUrl ) ;
119
107
string usersUrl = new Uri ( mastotonSiteUri , $ "users/{ mastodonAccount } ") . AbsoluteUri ;
120
108
string accountUrl = new Uri ( mastotonSiteUri , $ "@{ mastodonAccount } ") . AbsoluteUri ;
You can’t perform that action at this time.
0 commit comments