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 boxName == 'tlblog':
|
||||||
if postJsonObject['object'].get('tag'):
|
if postJsonObject['object'].get('tag'):
|
||||||
for tagJson in postJsonObject['object']['tag']:
|
for tagJson in postJsonObject['object']['tag']:
|
||||||
|
if not isinstance(tagJson, dict):
|
||||||
|
continue
|
||||||
if not tagJson.get('type'):
|
if not tagJson.get('type'):
|
||||||
continue
|
continue
|
||||||
if tagJson['type'] != 'Article':
|
if tagJson['type'] != 'Article':
|
||||||
|
|
Loading…
Reference in New Issue