XF 2.2 Large amount of new posts in a restricted forum empties the New Posts list for other users

Strutter

Member
We have an automated script that makes a post in an admin-only restricted forum when certain conditions are met. (one thread per member, a reply post to some of these posts).

A spike in these posts will cause the New Posts list to be empty for non-admin users. They moan about it :)

Can the New Posts list be made to pay attention to permissions?

For context, the "post spike" looks like this in the admin panel, the posts causing the sharp rise are only visible to admins.

1603787511683.png
 
Can the New Posts list be made to pay attention to permissions?
It does. Hence why this happens.

Theoretically it could be possible for us to enumerate the specific forums that are visible first, and only pull threads from those forums though this isn't necessarily always going to be a better approach - particularly if a forum has lots of nodes.

Instead what we do is select as many threads as possible - we already fetch more than we need to account for the fact that not all threads may be viewable - then filter them based on permissions.

Presumably the current situation is actually also bad for the admins as they get their list of new posts flooded by this spike which, presumably, are not threads/posts that they need to have flagged up as new and presumably not expected to read all of them?

So the solution is simple. Modify that forum and uncheck 'Include threads from this forum when users click "New posts"'. The threads/posts will no longer be included in new posts for any users and should avoid the empty new posts list issue for normal users.

Aside from that workaround, I don't think we'll be making any changes here.
 
Back
Top Bottom