Should I do something ?
No. You should not. The OP provided an answer that worked for them. They acknowledged that your answer was helpful too. Good job.
This seems to be ... a duplicate
The answer provided by the OP is not a duplicate. Their answer provides a single line of code. This line of code does not appear in your answer (or any of your revisions to your answer) at all. They've provided an answer that works for them based on the answer you provided. That does not make it a duplicate. Their answer isn't as comprehensive as yours, but that doesn't make it a duplicate.
This seems to be ... not fair
Oh? Do all of your questions in the world get answered by other people and you use their answers exactly as provided? The OP, in this case, received an answer that pointed them in the correct direction to investigate. They found an answer and took a few minutes to document that it worked for them.
If anything is unfair, it is this meta post that brought downvotes to an answer that worked for the OP.
This seems to be ... abusive
It is not. Full stop. A user is allowed to answer their own question. A user is allowed to use the the work of others to come up with an answer (as long as they cite the work, which this user did). A user is allowed to change the accepted answer at any time for any reason, as long as they aren't performing any voting fraud on this site.
I find that disrespectful to the job I did
I find it disrespectful that you assume a user, who is using different code than you but acknowledges your help in their answer, is to not intelligent enough to modify your answer to work for them and solve their problem.