Forem Creators and Builders 🌱

infogate
infogate

Posted on

How to enable Read next on my forum ?

I have installed but something is wrong, Read next
mine doesn't show up, even though I've posted many posts with the same tags
Alt Text
My forum.

need same !
Alt Text

Top comments (3)

Collapse
 
ben profile image
Ben Halpern

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))
Enter fullscreen mode Exit fullscreen mode

With offset being defined as such...

    def offset
      total_articles_count > 1000 ? 200 : (total_articles_count / 10)
    end
Enter fullscreen mode Exit fullscreen mode

...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.

Collapse
 
onetidc profile image
infogate

thanks

Collapse
 
ben profile image
Ben Halpern

Seems like the logical tweak would be fairly minimal.