fix forum categ last post ID

pull/7254/head
Thibault Duplessis 2020-09-07 08:31:38 +02:00
parent b7f134afdc
commit ddcca7c016
1 changed files with 1 additions and 1 deletions

View File

@ -30,7 +30,7 @@ case class Categ(
copy(
nbTopics = if (post.troll) nbTopics else nbTopics + 1,
nbPosts = if (post.troll) nbPosts else nbPosts + 1,
lastPostId = if (topic.isTooBig) lastPostId else post.id,
lastPostId = if (post.troll || topic.isTooBig) lastPostId else post.id,
nbTopicsTroll = nbTopicsTroll + 1,
nbPostsTroll = nbPostsTroll + 1,
lastPostIdTroll = if (topic.isTooBig) lastPostIdTroll else post.id