From 133cee99885b14db05d01272562096580d7365bc Mon Sep 17 00:00:00 2001 From: Jannis R Date: Wed, 27 Mar 2019 18:58:34 +0100 Subject: [PATCH] parseWarning: expose id :bug: --- parse/warning.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/parse/warning.js b/parse/warning.js index 687a2821..e697c8cf 100644 --- a/parse/warning.js +++ b/parse/warning.js @@ -28,9 +28,10 @@ const parseWarning = (profile, w, icons) => { const type = icon && icon.res && typesByIcon[icon.res] || 'warning' const res = { + id: w.hid || null, type, - summary: brToNewline(w.head), - text: brToNewline(w.text), + summary: brToNewline(w.head), // todo: decode HTML entities + text: brToNewline(w.text), // todo: decode HTML entities priority: w.prio, category: w.cat || null // todo: parse to sth meaningful }