Fix `sticky` and `unsticky` mod log

Currently it was swapped: stickying a topic was logged as un-styckying and vice versa
pull/7568/head
kraktus 2020-11-10 13:44:46 +00:00
parent 02fcce778d
commit 57c8848902
1 changed files with 1 additions and 1 deletions

View File

@ -176,7 +176,7 @@ final private[forum] class TopicApi(
def toggleSticky(categ: Categ, topic: Topic, mod: User): Funit =
env.topicRepo.sticky(topic.id, !topic.isSticky) >> {
MasterGranter(_.ModerateForum)(mod) ??
modLog.toggleStickyTopic(mod.id, categ.name, topic.name, topic.isSticky)
modLog.toggleStickyTopic(mod.id, categ.name, topic.name, !topic.isSticky)
}
def denormalize(topic: Topic): Funit =