mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-12-30 13:36:15 -06:00
little fixes
This commit is contained in:
parent
9b3e17b274
commit
e8a8dd1c27
3 changed files with 4 additions and 5 deletions
|
|
@ -70,9 +70,7 @@ func (m *Module) AuthorizeGETHandler(c *gin.Context) {
|
|||
c.JSON(http.StatusInternalServerError, gin.H{"error": "no client_id found in session"})
|
||||
return
|
||||
}
|
||||
app := >smodel.Application{
|
||||
ClientID: clientID,
|
||||
}
|
||||
app := >smodel.Application{}
|
||||
if err := m.db.GetWhere(c.Request.Context(), []db.Where{{Key: sessionClientID, Value: app.ClientID}}, app); err != nil {
|
||||
m.clearSession(s)
|
||||
c.JSON(http.StatusInternalServerError, gin.H{"error": fmt.Sprintf("no application found for client id %s", clientID)})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue