From 9ab9d29efbbf01626566ad82c21d88fc58ffb8c1 Mon Sep 17 00:00:00 2001 From: Kitaiti Makoto Date: Sun, 9 Jan 2022 01:32:14 +0900 Subject: [PATCH] Remove double slashes --- plume-models/src/likes.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/plume-models/src/likes.rs b/plume-models/src/likes.rs index da64d9d4..fceee144 100644 --- a/plume-models/src/likes.rs +++ b/plume-models/src/likes.rs @@ -165,8 +165,7 @@ impl AsObject 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,