From 2ffc66f41263becd9f6c94b7a484165d02ff7c5a Mon Sep 17 00:00:00 2001 From: April John Date: Fri, 26 Jul 2024 18:11:08 +0200 Subject: [PATCH] fix --- src/objects/person.rs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/objects/person.rs b/src/objects/person.rs index 1e59b4b..a5a0a8d 100644 --- a/src/objects/person.rs +++ b/src/objects/person.rs @@ -5,7 +5,7 @@ use crate::{ }, database::{State, StateHandle}, entities::{self, user}, - error::Error, + error::Error, API_DOMAIN, }; use activitypub_federation::{ config::Data, @@ -223,7 +223,11 @@ impl Object for user::Model { impl Actor for user::Model { fn id(&self) -> Url { - Url::parse(&self.id).unwrap() + Url::parse(&format!( + "https://{}/apbridge/user/{}", + API_DOMAIN.to_string(), + &self.id + )).unwrap() } fn public_key_pem(&self) -> &str {