From 11012a9ce1b4716bf697391dcf828b23b1418d33 Mon Sep 17 00:00:00 2001 From: Jade Ellis Date: Thu, 18 Dec 2025 22:29:23 +0000 Subject: [PATCH] fix: Always return the same 404 message in context --- src/api/client/context.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/api/client/context.rs b/src/api/client/context.rs index 5775b500..91aee1b2 100644 --- a/src/api/client/context.rs +++ b/src/api/client/context.rs @@ -59,7 +59,7 @@ pub(crate) async fn get_context_route( .rooms .timeline .get_pdu(event_id) - .map_err(|_| err!(Request(NotFound("Base event not found.")))); + .map_err(|_| err!(Request(NotFound("Event not found.")))); let visible = services .rooms @@ -70,7 +70,7 @@ pub(crate) async fn get_context_route( let (base_id, base_pdu, visible) = try_join3(base_id, base_pdu, visible).await?; if base_pdu.room_id_or_hash() != *room_id || base_pdu.event_id != *event_id { - return Err!(Request(NotFound("Base event not found."))); + return Err!(Request(NotFound("Event not found."))); } if !visible {