From 05df3b89a1abdd2513d7b9f11da1fe9602e25f0a Mon Sep 17 00:00:00 2001 From: Kitaiti Makoto Date: Sun, 1 May 2022 07:45:05 +0900 Subject: [PATCH] Fix Follow::activity07() --- plume-models/src/follows.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plume-models/src/follows.rs b/plume-models/src/follows.rs index 8f597d83..5d6beb43 100644 --- a/plume-models/src/follows.rs +++ b/plume-models/src/follows.rs @@ -265,7 +265,9 @@ impl AsObject07 for User { fn activity07(self, conn: &DbConn, actor: User, id: &str) -> Result { // Mastodon (at least) requires the full Follow object when accepting it, // so we rebuilt it here - let follow = FollowAct07::new(id.parse::()?, actor.ap_url.parse::()?); + let mut follow = + FollowAct07::new(id.parse::()?, actor.ap_url.parse::()?); + follow.set_id(id.parse::()?); Follow::accept_follow07(conn, &actor, &self, follow, actor.id, self.id) } }