mirror of
https://github.com/versia-pub/activitypub.git
synced 2025-12-06 06:38:20 +01:00
fawa
This commit is contained in:
parent
dde8692a5d
commit
92c9ad80b4
|
|
@ -3,7 +3,7 @@ use crate::{
|
||||||
self, follow_relation,
|
self, follow_relation,
|
||||||
prelude::{self, FollowRelation},
|
prelude::{self, FollowRelation},
|
||||||
user,
|
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::{
|
use activitypub_federation::{
|
||||||
activity_sending::SendActivityTask, fetch::object_id::ObjectId, protocol::context::WithContext,
|
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(),
|
actor: localuser_object.clone(),
|
||||||
object: followee_object.clone(),
|
object: followee_object.clone(),
|
||||||
kind: FollowType::Follow,
|
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)?;
|
let ap_json = serde_json::to_string(&create)?;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue