1
0
Fork 0
forked from alemi/upub

fix: oof my method sucks!!!!!

This commit is contained in:
əlemi 2024-05-03 05:05:07 +02:00
parent f8473a5ce1
commit 97b0c822f4
Signed by: alemi
GPG key ID: A4895B84D311642C

View file

@ -101,9 +101,9 @@ impl Context {
id id
} else if id.starts_with('+') { // compacted id } else if id.starts_with('+') { // compacted id
id id
.replacen('+', "https://", 1)
.replace('@', "/") .replace('@', "/")
.replace("//", "/@") // oops my method sucks!! TODO .replace("//", "/@") // oops my method sucks!! TODO
.replacen('+', "https://", 1)
} else { // bare local id } else { // bare local id
format!("{}{}/{}/{}", self.0.protocol, self.0.domain, entity, id) format!("{}{}/{}/{}", self.0.protocol, self.0.domain, entity, id)
} }