forked from indymedia/epicyon
Check that tags are dicts
parent
a1b2bcd5b6
commit
309fd923bd
|
@ -5588,6 +5588,8 @@ def individualPostAsHtml(allowDownloads: bool,
|
|||
if boxName == 'tlblog':
|
||||
if postJsonObject['object'].get('tag'):
|
||||
for tagJson in postJsonObject['object']['tag']:
|
||||
if not isinstance(tagJson, dict):
|
||||
continue
|
||||
if not tagJson.get('type'):
|
||||
continue
|
||||
if tagJson['type'] != 'Article':
|
||||
|
|
Loading…
Reference in New Issue