mirror of
https://git.joinplu.me/Plume/Plume.git
synced 2024-11-26 13:31:02 +00:00
Fix Follow::activity07()
This commit is contained in:
parent
4e42a34337
commit
05df3b89a1
1 changed files with 3 additions and 1 deletions
|
@ -265,7 +265,9 @@ impl AsObject07<User, FollowAct07, &DbConn> for User {
|
|||
fn activity07(self, conn: &DbConn, actor: User, id: &str) -> Result<Follow> {
|
||||
// Mastodon (at least) requires the full Follow object when accepting it,
|
||||
// so we rebuilt it here
|
||||
let follow = FollowAct07::new(id.parse::<IriString>()?, actor.ap_url.parse::<IriString>()?);
|
||||
let mut follow =
|
||||
FollowAct07::new(id.parse::<IriString>()?, actor.ap_url.parse::<IriString>()?);
|
||||
follow.set_id(id.parse::<IriString>()?);
|
||||
Follow::accept_follow07(conn, &actor, &self, follow, actor.id, self.id)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue