feat(core): provide user profile where appropriate
This commit is contained in:
@@ -23,7 +23,7 @@ pub async fn fetch_bot(
|
||||
}
|
||||
|
||||
Ok(Json(FetchBotResponse {
|
||||
user: db.fetch_user(&bot.id).await?.into(None).await,
|
||||
user: db.fetch_user(&bot.id).await?.into(db, None).await,
|
||||
bot: bot.into(),
|
||||
}))
|
||||
}
|
||||
|
||||
@@ -62,7 +62,7 @@ pub async fn message_send(
|
||||
}
|
||||
|
||||
// Create the message
|
||||
let author: v0::User = user.clone().into(Some(&user)).await;
|
||||
let author: v0::User = user.clone().into(db, Some(&user)).await;
|
||||
Ok(Json(
|
||||
Message::create_from_api(
|
||||
db,
|
||||
|
||||
Reference in New Issue
Block a user