fix: correct contact entry display

This commit is contained in:
Robert Perce 2026-02-04 14:07:01 -06:00
parent 6d6018aa32
commit 7e2f5d0a18

View file

@ -75,7 +75,7 @@ mod get {
let entries: Vec<JournalEntry> = sqlx::query_as( let entries: Vec<JournalEntry> = sqlx::query_as(
"select distinct j.id, j.value, j.date from journal_entries j "select distinct j.id, j.value, j.date from journal_entries j
join mentions m on j.id = m.entity_id join mentions m on j.id = m.entity_id
where m.entity_type = $1 and (m.url = '/contact/'||$1 or m.url in ( where m.entity_type = $1 and (m.url = '/contact/'||$2 or m.url in (
select '/group/'||slug from groups select '/group/'||slug from groups
where contact_id = $2 where contact_id = $2
)) ))