- UBS Version
- 2.3.8
- XenForo Version
- 2.3.6
- PHP Version
- 8.3.20
- Database & Version
- MariaDB 10.11.11
- Are there any errors being throw?
- No
Steps to reproduce
On a fresh install
Expected Result
One page with one blog entry is shown
Actual Result
A message "There are no blog entries available to view" is displayed, but the pagination shows 2 pages - when going to the second page one blog entry is displayed.


Suggested Fix
Don't show non-visible blog entries when viewing blogs home (this issue might affect more places)
or
(Overfetch entries and) Retry if displayed count < perpage and there are still more entries available (might become pretty inefficient if there are a lot of non-visible blog entries and not be possible everywhere)
or
Set finder conditions to only query blog entries with
On a fresh install
- Set permission View deleted blog entries to Yes for usergroup Moderating
- Set category permission View deleted blog entries in category Example category to No for usergroup Moderating
- Create a new public blog
- Create 21 public blog entries in category Example Category
- Soft-Delete the newest 20 blog entries
- View blogs home as a moderator (eg. user that is a member of Moderating)
Expected Result
One page with one blog entry is shown
Actual Result
A message "There are no blog entries available to view" is displayed, but the pagination shows 2 pages - when going to the second page one blog entry is displayed.


Suggested Fix
Don't show non-visible blog entries when viewing blogs home (this issue might affect more places)
or
(Overfetch entries and) Retry if displayed count < perpage and there are still more entries available (might become pretty inefficient if there are a lot of non-visible blog entries and not be possible everywhere)
or
Set finder conditions to only query blog entries with
state
!= visible
that are actually viewable by the visitor (Preferred)