Fetch announced notes

This commit is contained in:
silverpill 2021-12-06 15:28:41 +00:00
parent 21499b5fc3
commit cc9d1ff0d3

View file

@ -333,7 +333,8 @@ pub async fn receive_activity(
let post_id = match parse_object_id(&config.instance_url(), &object_id) {
Ok(post_id) => post_id,
Err(_) => {
let post = get_post_by_object_id(db_client, &object_id).await?;
// Try to get remote post
let post = process_note(config, db_client, object_id.clone(), None).await?;
post.id
},
};