From d61470d1187f4634eb5514d9a404072496476654 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Fri, 12 Feb 2021 01:24:39 +0000 Subject: [PATCH] call recalculate_occultation in ungrab Signed-off-by: Ian Jackson --- daemon/api.rs | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/daemon/api.rs b/daemon/api.rs index 4c948c2f..59f3ec6a 100644 --- a/daemon/api.rs +++ b/daemon/api.rs @@ -294,11 +294,20 @@ api_route!{ &gs.occults, player, gpl, piece, pc, p, "released" ); + let who_by = Html(htmlescape::encode_minimal(&gpl.nick)); - let _ = ipieces; + let vanilla = (WhatResponseToClientOp::Predictable, + update, + logents); - (WhatResponseToClientOp::Predictable, - update, logents).into() + let update= + recalculate_occultation(gs, + who_by, + ipieces, + piece, + vanilla).map_err(|e| OnlineError::from(e))?; + + update } } -- 2.30.2