That's fairly terrible, mainly because it's pretty doubtful they both have a flush, and because if they both did, you're not going to hit anywhere near 25% of the time, because they hold four of the hearts.

I would have liked it better maybe if you raised, but even the, you'd be three-betting a bettor and a raiser. That's probably the easiest flop fold you'll ever come across. You were extremely lucky in the pot after you played it about as badly as you could have.