Latest topics URL querystring syntax

(Raphael Haase) #1

I have been playing around with the latest topics URL and found out that you can do something like


The semantics of before=N puzzles me though. With different N I get different results, but N does not seem to mean days and also not a date in any format I can think of.

I tried things like




but I don’t get the logic.

Can somebody explain how this works?

(Sam Saffron) #2

before means topics.created_at < ? which is PARAM.to_i.days.ago

You also have bumped_before which looks at bumped_at date.

(Raphael Haase) #3

Great, thanks! Is there generally an overview/documentation of such parameters?

(Sam Saffron) #4

Mostly in the source code, this is very very ninja, our recommendation is just to rely on search here.