tidy + lint

This commit is contained in:
tsmethurst
2021-06-13 18:41:42 +02:00
parent a25e53af4e
commit f1eb6476f3
6 changed files with 24 additions and 12 deletions

View File

@ -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

View File

@ -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
}