mirror of
https://github.com/versia-pub/activitypub.git
synced 2026-03-13 02:49:17 +01:00
fix: allow api domain to have users
This commit is contained in:
parent
505809b117
commit
29ba9a8b7a
1 changed files with 1 additions and 1 deletions
|
|
@ -53,7 +53,7 @@ pub async fn db_post_from_url(url: Url) -> anyhow::Result<entities::post::Model>
|
||||||
}
|
}
|
||||||
|
|
||||||
pub async fn db_user_from_url(url: Url) -> anyhow::Result<entities::user::Model> {
|
pub async fn db_user_from_url(url: Url) -> anyhow::Result<entities::user::Model> {
|
||||||
if !url.domain().eq(&Some(LYSAND_DOMAIN.as_str())) {
|
if !url.domain().eq(&Some(LYSAND_DOMAIN.as_str())) && !url.domain().eq(&Some(API_DOMAIN.as_str())) {
|
||||||
return Err(anyhow!("not lysands domain"));
|
return Err(anyhow!("not lysands domain"));
|
||||||
}
|
}
|
||||||
let user_res: Option<user::Model> = prelude::User::find()
|
let user_res: Option<user::Model> = prelude::User::find()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue