Tag state loaded for first user in tag_user
table instead of logged-in user in ShowTagController
#4007
Labels
tag_user
table instead of logged-in user in ShowTagController
#4007
Current Behavior
The tag state is being loaded for the first user in the database instead of the currently logged-in user. This issue affects extensions like Follow Tags that rely on eager loading of the tag state, causing them to not function correctly.
See: FriendsOfFlarum/follow-tags#72 (comment)
Steps to Reproduce
Expected Behavior
The subscription state of tags should be loaded for the currently logged-in user, ensuring that extensions like Follow Tags work as expected.
Screenshots
Modified vendor/flarum/tags/src/Api/Controller/ShowTagController.php to display some info:
Environment
Additional Context
This issue was initially identified while troubleshooting an issue with the Follow Tags (v1.2.3) extension.
The problem lies in this controller: ShowTagController
framework/extensions/tags/src/Api/Controller/ShowTagController.php
Line 72 in 2a693db
The text was updated successfully, but these errors were encountered: