Fetch the user entities of all users mentioned or quoted on a thread page in a single query

Status
This content is read-only, or is not open for further replies.

nocte

Guest
offline
I have a thread page with 20 posts. Now I want to change the behavior of mentions and quotes on that page, depending on the user entity of the quoted or mentioned user.

As I don't have the full user entity, but only user_id's and names, I have to fetch the user entities form the database.

Is there any way to kind of collect the user_id's across the page, then fetch the mentioned and quoted users in a single query (for better performance) and finally manipulate the output depending...

Read more

Continue reading...
 
Liked by:
Status
This content is read-only, or is not open for further replies.
Top Bottom