Like you were told on the other website, your signal generator is not real, it is a simulation with ZERO output impedance. Its voltage is shown as normal even when its output is shorted for each positive half-cycle by the diode.
In real life the signal generator output impedance will be 50 ohms...