practically, sufficient for keys to be owned by same domain as actor.

the url scheme doesn't matter, and need not match.
problem identified by eta.
This commit is contained in:
Ted Unangst 2023-07-15 18:07:07 -04:00
parent 54fd484558
commit 97b9634a9e
1 changed files with 3 additions and 7 deletions

10
fun.go
View File

@ -694,13 +694,9 @@ func savingthrow(keyname string) {
} }
func keymatch(keyname string, actor string) string { func keymatch(keyname string, actor string) string {
hash := strings.IndexByte(keyname, '#') origin := originate(actor)
if hash == -1 { if origin == originate(keyname) {
hash = len(keyname) return origin
}
owner := keyname[0:hash]
if owner == actor {
return originate(actor)
} }
return "" return ""
} }