This commit is contained in:
parent
d42adbe274
commit
69e23fd9bb
4 changed files with 15 additions and 12 deletions
|
|
@ -85,6 +85,7 @@ fn birthdays_section(
|
|||
})
|
||||
}
|
||||
|
||||
#[tracing::instrument(level = "info")]
|
||||
pub async fn journal_section(
|
||||
pool: &SqlitePool,
|
||||
entries: &Vec<JournalEntry>,
|
||||
|
|
@ -110,7 +111,7 @@ pub async fn journal_section(
|
|||
|
||||
.entries {
|
||||
@for entry in entries {
|
||||
(Into::<MentionHost>::into(entry).format_pool(pool).await?)
|
||||
(entry.to_html(pool).await?)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -129,7 +130,7 @@ pub mod get {
|
|||
let pool = &state.db(&user).pool;
|
||||
|
||||
let contacts: Vec<HydratedContact> = sqlx::query_as(
|
||||
"select id, birthday, manually_freshened_at, (
|
||||
"select *, (
|
||||
select string_agg(name,'\x1c' order by sort)
|
||||
from names where contact_id = c.id
|
||||
) as names, (
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue