Fix bug when both parent and child previews are present

If the current post is displayed in both the parent and child previews,
there will be a duplicate dom id. This ensures the current-post class
gets added to both of them.
Merge branch 'master' of https://github.com/r888888888/danbooru