Fixed Reaction tooltip template included unconditionally

Kirby

Well-known member
Affected version
2.1.10
Template PAGE_CONTAINER does include the reaction tooltip template unconditionally.
This seems unnecessary as it can't be used by guests and or on pages that do not have reaction functionality.
 
We've made a small adjustment to this. We still load it unconditionally but do not load it at all unless you're logged in.

We have to load it in unconditionally because we don't know if the reactions functionality is going to be required in overlays or other dynamically loading content.

This was showing up in places like the profile posts widget where profile posts load in an overlay, the media gallery lightbox, and theoretically in threads too if a post is loaded in dynamically and no other posts had the react link.

Not including the template for guests is probably a reasonable compromise.
 
Top Bottom