From 74b3ac551a046a43683adf94cbce584b7e644d5e Mon Sep 17 00:00:00 2001 From: Henri Dickson <90480431+alphatownsman@users.noreply.github.com> Date: Wed, 27 Dec 2023 13:48:09 -0500 Subject: [PATCH] Fix accept/reject follow request (#683) --- users/models/follow.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/users/models/follow.py b/users/models/follow.py index cf186d8..8b350d9 100644 --- a/users/models/follow.py +++ b/users/models/follow.py @@ -282,7 +282,7 @@ class Follow(StatorModel): """ return { "type": "Accept", - "id": self.uri + "#accept", + "id": f"{self.target.actor_uri}follow/{self.id}/#accept", "actor": self.target.actor_uri, "object": self.to_ap(), } @@ -293,7 +293,7 @@ class Follow(StatorModel): """ return { "type": "Reject", - "id": self.uri + "#reject", + "id": f"{self.target.actor_uri}follow/{self.id}/#reject", "actor": self.target.actor_uri, "object": self.to_ap(), }