fix some format string mismatches

This commit is contained in:
Ted Unangst 2019-10-28 16:03:32 -04:00
parent 37dc0b25e9
commit c9aaab4869
2 changed files with 2 additions and 2 deletions

View File

@ -1235,7 +1235,7 @@ func collectiveaction(honk *Honk) {
j["id"] = user.URL + "/add/" + shortxid(ont+honk.XID)
j["actor"] = user.URL
j["object"] = honk.XID
j["target"] = fmt.Sprintf("https://%s/o/%s", ont[1:])
j["target"] = fmt.Sprintf("https://%s/o/%s", serverName, ont[1:])
rcpts := make(map[string]bool)
for _, dub := range dubs {
var box *Box

2
web.go
View File

@ -506,7 +506,7 @@ func serverinbox(w http.ResponseWriter, r *http.Request) {
return
}
ont := "#" + m[1]
log.Printf("updating honker undo: %s", who, ont)
log.Printf("updating honker undo: %s %s", who, ont)
_, err = stmtUpdateFlavor.Exec("undub", user.ID, who, ont, "dub")
if err != nil {
log.Printf("error updating honker: %s", err)