mirror of
https://github.com/versia-pub/activitypub.git
synced 2025-12-06 06:38:20 +01:00
fix
This commit is contained in:
parent
65f1f543a6
commit
2ffc66f412
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in a new issue