Fix applying forum permissions for thanks counting in viewtopic miniprofiles.