Fix `sticky` and `unsticky` mod log
Currently it was swapped: stickying a topic was logged as un-styckying and vice versapull/7568/head
parent
02fcce778d
commit
57c8848902
|
@ -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 =
|
||||
|
|
Loading…
Reference in New Issue