mirror of
https://github.com/versia-pub/activitypub.git
synced 2025-12-06 06:38:20 +01:00
fix: legacy code check
This commit is contained in:
parent
6997e4d994
commit
1f44d79f2b
|
|
@ -163,7 +163,7 @@ impl Object for user::Model {
|
|||
data: &Data<Self::DataType>,
|
||||
) -> Result<Option<Self>, Self::Error> {
|
||||
let res = entities::prelude::User::find()
|
||||
.filter(entities::user::Column::Id.eq(object_id.as_str()))
|
||||
.filter(entities::user::Column::Url.eq(object_id.as_str()))
|
||||
.one(data.database_connection.as_ref())
|
||||
.await?;
|
||||
Ok(res)
|
||||
|
|
|
|||
Loading…
Reference in a new issue