some more work on add topic - we're up to where we need to branch off for an attachment

This commit is contained in:
2025-11-07 22:55:53 -07:00
parent 5dbff8b4b3
commit 944f22e963
3 changed files with 102 additions and 5 deletions
+6
View File
@@ -283,6 +283,12 @@ func AmNewTopic(conf *Conference, user *User, title string, zeroPostPseud string
amdb.Exec("UNLOCK TABLES;")
unlock = false
// update the "last posted" date in the conference settings
_, err = conf.TouchPost(user, topic.CreateDate)
if err != nil {
return nil, err
}
// create audit record
ar = AmNewAudit(AuditConferenceCreateTopic, user.Uid, ipaddr, fmt.Sprintf("confid=%d", conf.ConfId),
fmt.Sprintf("num=%d", topic.Number), fmt.Sprintf("name=%s", topic.Name))