You have the functionality. I believe some of the logic just doesn't fully work all the time on small Forems.
I see this line of code in the query...
.offset(rand(0..offset))
With offset being defined as such...
offset
def offset total_articles_count > 1000 ? 200 : (total_articles_count / 10) end
...Basically "offset" is going to be too large for new Forems without much content. We should make this value dynamic based on the total number of posts in the Forem.
thanks
Seems like the logical tweak would be fairly minimal.
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
Let's Build Forem
You have the functionality. I believe some of the logic just doesn't fully work all the time on small Forems.
I see this line of code in the query...
With
offset
being defined as such......Basically "offset" is going to be too large for new Forems without much content. We should make this value dynamic based on the total number of posts in the Forem.
thanks
Seems like the logical tweak would be fairly minimal.