Here’s a source that says decomposing bodies remain infectious for only three or four days. They’re talking about gorilla bodies, but I can’t see any reason human bodies would be any different. Presumably infectiousness would drop off quickly after the first day or so.
Also good solid general information.
https://microbewiki.kenyon.edu/index.php/Ebola_virus
That is better news than the weeks some had said, thanks.