fix: gts uses a path but its not real???

This commit is contained in:
əlemi 2024-05-31 15:56:25 +02:00
parent 5a57fd69b9
commit 6129973b13

View file

@ -115,6 +115,7 @@ where
// TODO assert payload's digest is equal to signature's
let user_id = http_signature.key_id
.replace("/main-key", "") // gotosocial whyyyyy
.split('#')
.next().ok_or(UpubError::bad_request())?
.to_string();