Fixed a regression introduced about by_pinned_or_most_recent_post

I noticed a change on by_pinned_or_most_recent_post I could not explain and that caused a strange behavior on my pinned topics.
I just reverted to what the code was on master, and everything works again.