From 92c9ad80b46c430c43e04194495b4686b501b69c Mon Sep 17 00:00:00 2001 From: aprilthepink Date: Sat, 3 Aug 2024 08:23:46 +0200 Subject: [PATCH] fawa --- src/lysand/inbox.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lysand/inbox.rs b/src/lysand/inbox.rs index daf064a..f2d2a16 100644 --- a/src/lysand/inbox.rs +++ b/src/lysand/inbox.rs @@ -3,7 +3,7 @@ use crate::{ self, follow_relation, prelude::{self, FollowRelation}, user, - }, lysand::http::main_lysand_url_to_user_and_model, utils::generate_follow_req_id, DB, FEDERATION_CONFIG + }, lysand::http::main_lysand_url_to_user_and_model, utils::generate_follow_req_id, API_DOMAIN, DB, FEDERATION_CONFIG }; use activitypub_federation::{ activity_sending::SendActivityTask, fetch::object_id::ObjectId, protocol::context::WithContext, @@ -94,7 +94,7 @@ async fn follow_request(follow: super::objects::Follow) -> Result<()> { actor: localuser_object.clone(), object: followee_object.clone(), kind: FollowType::Follow, - id: generate_follow_req_id(data.domain(), id.clone().as_str())?, + id: generate_follow_req_id(&API_DOMAIN.to_string(), id.clone().as_str())?, }; let ap_json = serde_json::to_string(&create)?;