mirror of
https://github.com/versia-pub/activitypub.git
synced 2025-12-06 06:38:20 +01:00
w
This commit is contained in:
parent
33475b5bb9
commit
23bd522ade
|
|
@ -617,7 +617,14 @@ pub async fn receive_versia_note(
|
|||
cc,
|
||||
to,
|
||||
tag,
|
||||
attributed_to: Url::parse(user.uri.clone().as_str()).unwrap().into(),
|
||||
attributed_to: {
|
||||
let user = db_user_from_url(Url::parse(user.uri.clone().as_str()).unwrap()).await?;
|
||||
let ap_url = Url::parse(&format!(
|
||||
"https://{}/apbridge/user/{}",
|
||||
domain, user.id
|
||||
).to_string())?;
|
||||
ap_url.into()
|
||||
},
|
||||
content: option_content_format_text(note.content)
|
||||
.await
|
||||
.unwrap_or_default(),
|
||||
|
|
|
|||
Loading…
Reference in a new issue