Remove double slashes

This commit is contained in:
Kitaiti Makoto 2022-01-09 01:32:14 +09:00
parent 5373a674e1
commit 9ab9d29efb
1 changed files with 1 additions and 2 deletions

View File

@ -165,8 +165,7 @@ impl AsObject<User, activity::Undo, &DbConn> for Like {
impl NewLike {
pub fn new(p: &Post, u: &User) -> Self {
// TODO: this URL is not valid
let ap_url = format!("{}/like/{}", u.ap_url, p.ap_url);
let ap_url = format!("{}like/{}", u.ap_url, p.ap_url);
NewLike {
post_id: p.id,
user_id: u.id,