Duplicates and 'follow_unique' in jrdiscussion_follow_topic
Jamroom Developers
From memory: There should only be one pair per topic and the state of the button being displayed toggles the state. So in a perfect world if the user is following the button shows them following, if the user is not following, the buttons shows them not following.
I think somewhere duplicates were slipping in ( maybe caching not showing the correct state of the button, not sure, vaguely remember something. ) and so the delete all records was added.
As for the follow_unique, I believe thats so that the correct follow can be deleted via things like an email link. if links like
.../.../.../remove_follow/user_id=1/topic_id=1 worked it could allow for someone who did not own that follow removing another person from the following list.
If you know steps that consistently add duplicates I can go look at the code again.