mirror of
https://github.com/versia-pub/activitypub.git
synced 2025-12-06 06:38:20 +01:00
fix: allow api domain to have users
This commit is contained in:
parent
505809b117
commit
29ba9a8b7a
|
|
@ -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> {
|
||||
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"));
|
||||
}
|
||||
let user_res: Option<user::Model> = prelude::User::find()
|
||||
|
|
|
|||
Loading…
Reference in a new issue