mirror of
https://github.com/versia-pub/activitypub.git
synced 2026-03-12 18:49:14 +01:00
w
This commit is contained in:
parent
33475b5bb9
commit
23bd522ade
1 changed files with 8 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue