mirror of
https://github.com/zedeus/nitter.git
synced 2025-12-08 04:55:37 -05:00
Fix parseText crash on nil node
This commit is contained in:
@@ -43,6 +43,7 @@ proc isProtected*(profile: XmlNode): bool =
|
||||
getHeader(profile).select(".Icon.Icon--protected") != nil
|
||||
|
||||
proc parseText*(text: XmlNode; skipLink=""): string =
|
||||
if text == nil: return
|
||||
for el in text:
|
||||
case el.kind
|
||||
of xnText:
|
||||
|
||||
Reference in New Issue
Block a user