Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
CutestNekoAqua committed Jul 26, 2024
1 parent 65f1f54 commit 2ffc66f
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/objects/person.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use crate::{
},
database::{State, StateHandle},
entities::{self, user},
error::Error,
error::Error, API_DOMAIN,
};
use activitypub_federation::{
config::Data,
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit 2ffc66f

Please sign in to comment.