can only follow users, not anything else

This commit is contained in:
Ted Unangst 2019-04-25 00:59:20 -04:00
parent 99d89bb62c
commit 4441d906f6
1 changed files with 7 additions and 2 deletions

View File

@ -337,8 +337,13 @@ func inbox(w http.ResponseWriter, r *http.Request) {
obj, _ := jsongetstring(j, "object")
log.Printf("pong from %s: %s", who, obj)
case "Follow":
obj, _ := jsongetstring(j, "object")
if obj == user.URL {
log.Printf("updating honker follow: %s", who)
rubadubdub(user, j)
} else {
log.Printf("can't follow %s", obj)
}
case "Accept":
db := opendatabase()
log.Printf("updating honker accept: %s", who)