mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-12-24 15:16:21 -06:00
enforce scopes
This commit is contained in:
parent
e3857b90bb
commit
21d9edac54
191 changed files with 1473 additions and 648 deletions
|
|
@ -186,9 +186,8 @@ func (m *Module) StreamGETHandler(c *gin.Context) {
|
|||
|
||||
// No explicit token was provided:
|
||||
// try regular oauth as a last resort.
|
||||
authed, err := apiutil.TokenAuth(c, true, true, true, true)
|
||||
if err != nil {
|
||||
errWithCode := gtserror.NewErrorUnauthorized(err, err.Error())
|
||||
authed, errWithCode := apiutil.TokenAuth(c, true, true, true, true)
|
||||
if errWithCode != nil {
|
||||
apiutil.ErrorHandler(c, errWithCode, m.processor.InstanceGetV1)
|
||||
return
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue