From: Ian Jackson Date: Fri, 12 Feb 2021 01:24:39 +0000 (+0000) Subject: call recalculate_occultation in ungrab X-Git-Tag: otter-0.4.0~539 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=d61470d1187f4634eb5514d9a404072496476654;p=otter.git call recalculate_occultation in ungrab Signed-off-by: Ian Jackson --- 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 } }