|
|
@ -346,12 +346,14 @@ func inbox(w http.ResponseWriter, r *http.Request) {
|
|
|
|
log.Printf("unknown undo no object")
|
|
|
|
log.Printf("unknown undo no object")
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
what, _ := jsongetstring(obj, "type")
|
|
|
|
what, _ := jsongetstring(obj, "type")
|
|
|
|
if what != "Follow" {
|
|
|
|
switch what {
|
|
|
|
log.Printf("unknown undo: %s", what)
|
|
|
|
case "Follow":
|
|
|
|
} else {
|
|
|
|
|
|
|
|
log.Printf("updating honker undo: %s", who)
|
|
|
|
log.Printf("updating honker undo: %s", who)
|
|
|
|
db := opendatabase()
|
|
|
|
db := opendatabase()
|
|
|
|
db.Exec("update honkers set flavor = 'undub' where xid = ? and flavor = 'dub'", who)
|
|
|
|
db.Exec("update honkers set flavor = 'undub' where xid = ? and flavor = 'dub'", who)
|
|
|
|
|
|
|
|
case "Like":
|
|
|
|
|
|
|
|
default:
|
|
|
|
|
|
|
|
log.Printf("unknown undo: %s", what)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
default:
|
|
|
|
default:
|
|
|
|