mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-11-23 22:43:33 -06:00
lil webfingy fix (#106)
* lil webfingy fix * return requested content type from fede requests
This commit is contained in:
parent
29bdc41baa
commit
113186ce4e
6 changed files with 58 additions and 8 deletions
|
|
@ -64,7 +64,7 @@ func (m *Module) WebfingerGETRequest(c *gin.Context) {
|
|||
return
|
||||
}
|
||||
|
||||
if accountDomain != m.config.AccountDomain {
|
||||
if accountDomain != m.config.AccountDomain && accountDomain != m.config.Host {
|
||||
l.Debugf("aborting request because accountDomain %s does not belong to this instance", accountDomain)
|
||||
c.JSON(http.StatusBadRequest, gin.H{"error": fmt.Sprintf("accountDomain %s does not belong to this instance", accountDomain)})
|
||||
return
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue