all repos — honk @ 4fc56940b5a18711d96b6ab1a6e0e7e0b0517bc4

my fork of honk

u
Anirudh Oppiliappan x@icyphox.sh
Sun, 21 Jan 2024 23:33:36 +0200
commit

4fc56940b5a18711d96b6ab1a6e0e7e0b0517bc4

parent

b5297753c0141dd5edb2fc94a8481d9ae1d727f5

2 files changed, 3 insertions(+), 1 deletions(-)

jump to
M masto.gomasto.go

@@ -148,6 +148,7 @@

if grantType == "authorization_code" { // idk if this is ok? should code be reset? if app.AuthToken == code { + elog.Println("passed aauthtoken==code check") accessToken := tokengen() _, err := stmtSaveMastoAccessToken.Exec(app.ClientID, accessToken) if err != nil {

@@ -160,6 +161,7 @@ j["access_token"] = accessToken

j["token_type"] = "Bearer" j["scope"] = app.Scopes j["created_at"] = time.Now().UTC().Unix() + elog.Println("aboutta goodjunk XXX") goodjunk(rw, j) } } else {
M web.goweb.go

@@ -3007,7 +3007,7 @@ h.ServeHTTP(w, r)

uri := r.URL.String() method := r.Method - elog.Printf("masto:%s %s", method, uri) + elog.Printf("masto: %s %s", method, uri) } return http.HandlerFunc(fn)