mirror of
https://github.com/versia-pub/activitypub.git
synced 2025-12-06 22:58:19 +01:00
fix
This commit is contained in:
parent
65f1f543a6
commit
2ffc66f412
|
|
@ -5,7 +5,7 @@ use crate::{
|
||||||
},
|
},
|
||||||
database::{State, StateHandle},
|
database::{State, StateHandle},
|
||||||
entities::{self, user},
|
entities::{self, user},
|
||||||
error::Error,
|
error::Error, API_DOMAIN,
|
||||||
};
|
};
|
||||||
use activitypub_federation::{
|
use activitypub_federation::{
|
||||||
config::Data,
|
config::Data,
|
||||||
|
|
@ -223,7 +223,11 @@ impl Object for user::Model {
|
||||||
|
|
||||||
impl Actor for user::Model {
|
impl Actor for user::Model {
|
||||||
fn id(&self) -> Url {
|
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 {
|
fn public_key_pem(&self) -> &str {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue