As the Quran says: "Oh, you who believe! Fasting is prescribed to you as it was prescribed to those before you, that you may learn piety and righteousness" [Quran 2:183]
As a non-religious gay I probably wasn't invited anyway. But this kind of thinking is what leads conservatives to so much repression and hate. The idea that the wants and needs of your body are something which the mind must actively fight. That the scratchy, ill-fitting wool sweater of your culture is something that you must keep on at all costs. And it leads to resentment of people who are not under such self-imposed restrictions.
There is a reason in queer culture that 'shadiness' is a bigger sin than anger. Shadiness is what happens when someone represses their true feelings. Those feelings don't go away though, they just resurface in other unexpected and non-adaptive ways.