Well i've got skinny and gained it all back more than once in my lifetime. I expect there are a few here who have done that too. So although i don't know you, i'd be surprised if anyone would have a go at you for falling off the wagon.
I have depression too. But not right now of course. Staying on top of that is now uppermost in my mind for continued success on this journey and on my future "permanent" - yes i live in hope - maintenance.
For me the link between weight gain and low mood, stress and pressure is undeniable now.