Show if I've responded to a topic?

I’m interested in the opportunity to show I answered or not . How best to implement this?

There is something simple that can be used immediately or necessary to make the request to the database plugin?