Remove double slashes
This commit is contained in:
parent
5373a674e1
commit
9ab9d29efb
@ -165,8 +165,7 @@ impl AsObject<User, activity::Undo, &DbConn> for Like {
|
|||||||
|
|
||||||
impl NewLike {
|
impl NewLike {
|
||||||
pub fn new(p: &Post, u: &User) -> Self {
|
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 {
|
NewLike {
|
||||||
post_id: p.id,
|
post_id: p.id,
|
||||||
user_id: u.id,
|
user_id: u.id,
|
||||||
|
Loading…
Reference in New Issue
Block a user