all repos — honk @ 2d015421d887b4da87dba20410be9554026d5968

my fork of honk

can't edit bonks, but allow other edits
Ted Unangst tedu@tedunangst.com
Wed, 09 Oct 2019 16:12:46 -0400
commit

2d015421d887b4da87dba20410be9554026d5968

parent

d30b4a5141d5445fa0d74ff3a123a3e7814ba1a9

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

jump to
M web.goweb.go

@@ -902,8 +902,8 @@ u := login.GetUserInfo(r)

user, _ := butwhatabout(u.Username) xid := r.FormValue("xid") honk := getxonk(u.UserID, xid) - if honk == nil || honk.Honker != user.URL || honk.What != "honk" { - log.Printf("no edit") + if honk == nil || honk.Honker != user.URL || honk.What == "bonk" { + http.Error(w, "no editing that please", http.StatusInternalServerError) return }