rescope
This commit is contained in:
parent
1af5998b20
commit
979b64256b
2
web.go
2
web.go
|
@ -2302,7 +2302,6 @@ func honkhonkline() {
|
|||
func apihandler(w http.ResponseWriter, r *http.Request) {
|
||||
u := login.GetUserInfo(r)
|
||||
userid := u.UserID
|
||||
user, _ := butwhatabout(u.Username)
|
||||
action := r.FormValue("action")
|
||||
wait, _ := strconv.ParseInt(r.FormValue("wait"), 10, 0)
|
||||
log.Printf("api request '%s' on behalf of %s", action, u.Username)
|
||||
|
@ -2362,6 +2361,7 @@ func apihandler(w http.ResponseWriter, r *http.Request) {
|
|||
j["honks"] = honks
|
||||
j.Write(w)
|
||||
case "sendactivity":
|
||||
user, _ := butwhatabout(u.Username)
|
||||
public := r.FormValue("public") == "1"
|
||||
rcpts := boxuprcpts(user, r.Form["rcpt"], public)
|
||||
msg := []byte(r.FormValue("msg"))
|
||||
|
|
Loading…
Reference in New Issue