Fix ap_url of Reshare

This commit is contained in:
Kitaiti Makoto 2022-01-09 01:58:39 +09:00
parent e5bc84badf
commit f529e803ef

View File

@ -191,7 +191,7 @@ impl AsObject<User, Undo, &DbConn> for Reshare {
impl NewReshare { impl NewReshare {
pub fn new(p: &Post, u: &User) -> Self { pub fn new(p: &Post, u: &User) -> Self {
let ap_url = format!("{}/reshare/{}", u.ap_url, p.ap_url); let ap_url = format!("{}reshare/{}", u.ap_url, p.ap_url);
NewReshare { NewReshare {
post_id: p.id, post_id: p.id,
user_id: u.id, user_id: u.id,