tidy + lint
This commit is contained in:
@ -1,5 +1,7 @@
|
||||
package model
|
||||
|
||||
// StatusTimelineResponse wraps a slice of statuses, ready to be serialized, along with the Link
|
||||
// header for the previous and next queries, to be returned to the client.
|
||||
type StatusTimelineResponse struct {
|
||||
Statuses []*Status
|
||||
LinkHeader string
|
||||
|
||||
@ -63,7 +63,7 @@ func (m *Module) WebfingerGETRequest(c *gin.Context) {
|
||||
}
|
||||
|
||||
if domain != m.config.Host {
|
||||
l.Debug("aborting request because domain %s does not belong to this instance", domain)
|
||||
l.Debugf("aborting request because domain %s does not belong to this instance", domain)
|
||||
c.JSON(http.StatusBadRequest, gin.H{"error": fmt.Sprintf("domain %s does not belong to this instance", domain)})
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user