mirror of https://gitlab.com/bashrc2/epicyon
Check for dict
parent
5bf2b059e0
commit
e0613d9469
|
@ -1350,7 +1350,8 @@ def individualPostAsHtml(allowDownloads: bool,
|
||||||
|
|
||||||
# check if replying is permitted
|
# check if replying is permitted
|
||||||
commentsEnabled = True
|
commentsEnabled = True
|
||||||
if 'commentsEnabled' in postJsonObject['object']:
|
if isinstance(postJsonObject['object'], dict) and \
|
||||||
|
'commentsEnabled' in postJsonObject['object']:
|
||||||
if postJsonObject['object']['commentsEnabled'] is False:
|
if postJsonObject['object']['commentsEnabled'] is False:
|
||||||
commentsEnabled = False
|
commentsEnabled = False
|
||||||
elif 'rejectReplies' in postJsonObject['object']:
|
elif 'rejectReplies' in postJsonObject['object']:
|
||||||
|
@ -1358,8 +1359,10 @@ def individualPostAsHtml(allowDownloads: bool,
|
||||||
commentsEnabled = False
|
commentsEnabled = False
|
||||||
|
|
||||||
conversationId = None
|
conversationId = None
|
||||||
if postJsonObject['object']['conversation']:
|
if isinstance(postJsonObject['object'], dict) and \
|
||||||
conversationId = postJsonObject['object']['conversation']
|
'conversation' in postJsonObject['object']:
|
||||||
|
if postJsonObject['object']['conversation']:
|
||||||
|
conversationId = postJsonObject['object']['conversation']
|
||||||
|
|
||||||
replyStr = _getReplyIconHtml(nickname, isPublicRepeat,
|
replyStr = _getReplyIconHtml(nickname, isPublicRepeat,
|
||||||
showIcons, commentsEnabled,
|
showIcons, commentsEnabled,
|
||||||
|
|
Loading…
Reference in New Issue