mirror of
https://github.com/nullishamy/ferri.git
synced 2025-06-29 01:24:17 +00:00
parent
918dcb60f9
commit
005c13e1d4
9 changed files with 43 additions and 14 deletions
|
@ -76,10 +76,7 @@ pub async fn new_follow(
|
|||
};
|
||||
|
||||
let req = ap::OutgoingActivity {
|
||||
signed_by: format!(
|
||||
"https://ferri.amy.mov/users/{}#main-key",
|
||||
follower.username()
|
||||
),
|
||||
signed_by: format!("{}#main-key", follower.uri()),
|
||||
req: activity,
|
||||
to: followed.actor().clone(),
|
||||
};
|
||||
|
|
|
@ -36,7 +36,7 @@ pub async fn finger_account(mut db: Connection<Db>, account: &str) -> status::Ac
|
|||
r#"
|
||||
INSERT INTO user (id, username, actor_id, display_name)
|
||||
VALUES (?1, ?2, ?3, ?4)
|
||||
ON CONFLICT(id) DO NOTHING
|
||||
ON CONFLICT(actor_id) DO NOTHING
|
||||
"#,
|
||||
uuid,
|
||||
username,
|
||||
|
@ -47,7 +47,7 @@ pub async fn finger_account(mut db: Connection<Db>, account: &str) -> status::Ac
|
|||
.await
|
||||
.unwrap();
|
||||
|
||||
status::Accepted(format!("https://ferri.amy.mov/users/{}", username))
|
||||
status::Accepted(format!("https://ferri.amy.mov/users/{}", uuid))
|
||||
}
|
||||
|
||||
pub async fn resolve_user(acct: &str, host: &str) -> types::Person {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue