📢 Moderators Needed 🚀

Moderators are needed with resources to post or have access to resources to post. Submit an application to be considered.
N

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

  • Thread starter Thread starter nocte
  • Start date Start date
N

nocte

Guest
Guest or Bot
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...
 
Similar content Most view View more
Back
Top