Looking into the circuit attached:
When the input signal is negative, D1 is forward biased, and D2 reverse biased. In this case the circuit is an inverting low pass filter with unity gain R3/R1 and cutoff frequency defined by R3 and C1.
When the input signal is positive, D1 is reverse-biased and D2 is forward-biased. The op amp becomes a non-inverting low pass filter, right? My question is: If D1 is reversed-biased, the op amp doesn't see R1. How does the amplifier keep unity gain?