From f5e65632b8f1ba384ad021f8c1e437d69702092f Mon Sep 17 00:00:00 2001 From: Jason Schwarzenberger Date: Thu, 19 Nov 2020 14:27:24 +1300 Subject: [PATCH] fix comment date. --- apiserver/misc/stuff.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/apiserver/misc/stuff.py b/apiserver/misc/stuff.py index 8c01665..b25a688 100644 --- a/apiserver/misc/stuff.py +++ b/apiserver/misc/stuff.py @@ -36,7 +36,9 @@ def _parse_comment(soup): c['authorLink'] = _soup_get_text(soup.find('link')) if soup.find('description'): c['text'] = _soup_get_text(soup.find('description')) - if soup.find('pubDate'): + if soup.find('pubdate'): + c['date'] = unix(soup.find('pubdate').text) + elif soup.find('pubDate'): c['date'] = unix(soup.find('pubDate').text) return c