mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-11-20 14:27:29 -06:00
rename util functions
This commit is contained in:
parent
8f874a0ec0
commit
fa4d267d16
4 changed files with 36 additions and 17 deletions
|
|
@ -37,14 +37,14 @@ func (m *Module) OOBTokenGETHandler(c *gin.Context) {
|
|||
return
|
||||
}
|
||||
|
||||
user := m.userFromSession(c, s)
|
||||
user := m.mustUserFromSession(c, s)
|
||||
if user == nil {
|
||||
// Error already
|
||||
// written.
|
||||
return
|
||||
}
|
||||
|
||||
scope := m.stringFromSession(c, s, sessionScope)
|
||||
scope := m.mustStringFromSession(c, s, sessionScope)
|
||||
if scope == "" {
|
||||
// Error already
|
||||
// written.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue