Led tailights

I put led 1157 taillights in my 2013 outlander since incandescent got to hot and melted my lenses some. The driver side light is working perfectly fine however the passenger side is dim and also doesn’t work when the brake is switched. I know from reading it is a diode issue. My question is which wire for the bulb socket gets the diode and what type of diode do I need?