Fix broken audit log in thread log

This commit is contained in:
rubenwardy
2021-06-14 17:40:38 +01:00
parent 7dbea9f042
commit 231c2a3a1e

View File

@ -104,7 +104,7 @@ def set_lock(id):
flash("Unlocked thread", "success") flash("Unlocked thread", "success")
addNotification(thread.watchers, current_user, NotificationType.OTHER, msg, thread.getViewURL(), thread.package) addNotification(thread.watchers, current_user, NotificationType.OTHER, msg, thread.getViewURL(), thread.package)
addAuditLog(AuditSeverity.MODERATION, current_user, NotificationType.OTHER, msg, thread.getViewURL(), thread.package) addAuditLog(AuditSeverity.MODERATION, current_user, msg, thread.getViewURL(), thread.package)
db.session.commit() db.session.commit()