Compare commits

...

2 commits

Author SHA1 Message Date
b6a17184eb chore(apb): track todo &str 2024-05-31 15:56:41 +02:00
6129973b13 fix: gts uses a path but its not real??? 2024-05-31 15:56:25 +02:00
2 changed files with 2 additions and 0 deletions

View file

@ -99,6 +99,7 @@ impl<T : super::Base> Node<T> {
}
/// returns id of object: url for link, id for object, None if empty or array
// TODO return Option<&str> and avoid inner clone
pub fn id(&self) -> Option<String> {
match self {
Node::Empty => None,

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();