Detect if we're getting the lastpost for a forum or topic

Signed-off-by: Gawain Lynch <gawain.lynch@gmail.com>
Return the right stuff

Signed-off-by: Gawain Lynch <gawain.lynch@gmail.com>