mirror of
https://github.com/versia-pub/activitypub.git
synced 2025-12-06 06:38:20 +01:00
fix: use example as default user
This commit is contained in:
parent
21a3447a84
commit
a6c0fc4755
|
|
@ -35,7 +35,7 @@ pub async fn db_post_from_url(url: Url) -> anyhow::Result<entities::post::Model>
|
|||
Ok(post)
|
||||
} else {
|
||||
let post = fetch_note_from_url(url.clone()).await?;
|
||||
receive_lysand_note(post, "1".to_string()).await?;
|
||||
receive_lysand_note(post, "example".to_string()).await?;
|
||||
let post_res: Option<post::Model> = prelude::Post::find().filter(entities::post::Column::Url.eq(str_url)).one(DB.get().unwrap()).await?;
|
||||
Ok(post_res.unwrap())
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue