History: Fix panic on acknowledgement comment expiry

This commit is contained in:
Noah Hilverling 2019-11-04 13:56:05 +01:00
parent cbc6aa16c0
commit c3b5366a36

View file

@ -316,7 +316,11 @@ func commentHistoryWorker(super *supervisor.Supervisor) {
case "comment_add":
eventTime = values["entry_time"].(string)
case "comment_remove":
eventTime = values["remove_time"].(string)
if values["remove_time"] != nil {
eventTime = values["remove_time"].(string)
} else {
eventTime = values["expire_time"].(string)
}
}
data := []interface{}{