From 7e2f5d0a18a439b0a6e88a554a85a8b87a8d2a6a Mon Sep 17 00:00:00 2001 From: Robert Perce Date: Wed, 4 Feb 2026 14:07:01 -0600 Subject: [PATCH] fix: correct contact entry display --- src/web/contact/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/web/contact/mod.rs b/src/web/contact/mod.rs index 8eea1b0..bdeac88 100644 --- a/src/web/contact/mod.rs +++ b/src/web/contact/mod.rs @@ -75,7 +75,7 @@ mod get { let entries: Vec = sqlx::query_as( "select distinct j.id, j.value, j.date from journal_entries j 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 where contact_id = $2 ))