mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2026-01-05 22:23:16 -06:00
changing more stuff
This commit is contained in:
parent
29b4adfb69
commit
0f7cfa75f3
126 changed files with 1060 additions and 920 deletions
|
|
@ -50,7 +50,7 @@ func (m *Module) baseHandler(c *gin.Context) {
|
|||
l := m.log.WithField("func", "BaseGETHandler")
|
||||
l.Trace("serving index html")
|
||||
|
||||
instance, err := m.processor.InstanceGet(m.config.Host)
|
||||
instance, err := m.processor.InstanceGet(c.Request.Context(), m.config.Host)
|
||||
if err != nil {
|
||||
l.Debugf("error getting instance from processor: %s", err)
|
||||
c.JSON(http.StatusInternalServerError, gin.H{"error": "internal server error"})
|
||||
|
|
@ -71,7 +71,7 @@ func (m *Module) NotFoundHandler(c *gin.Context) {
|
|||
l := m.log.WithField("func", "404")
|
||||
l.Trace("serving 404 html")
|
||||
|
||||
instance, err := m.processor.InstanceGet(m.config.Host)
|
||||
instance, err := m.processor.InstanceGet(c.Request.Context(), m.config.Host)
|
||||
if err != nil {
|
||||
l.Debugf("error getting instance from processor: %s", err)
|
||||
c.JSON(http.StatusInternalServerError, gin.H{"error": "internal server error"})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue