mirror of https://gitlab.com/bashrc2/epicyon
Check for dictionary
parent
11995eccb4
commit
5c5256cae9
4
posts.py
4
posts.py
|
@ -6144,6 +6144,10 @@ def edited_post_filename(base_dir: str, nickname: str, domain: str,
|
|||
return '', None
|
||||
if lastpost_json['type'] != post_json_object['type']:
|
||||
return '', None
|
||||
if lastpost_json.get('object'):
|
||||
return '', None
|
||||
if not isinstance(lastpost_json['object'], dict):
|
||||
return '', None
|
||||
if not lastpost_json['object'].get('type'):
|
||||
return '', None
|
||||
if lastpost_json['object']['type'] != post_json_object['object']['type']:
|
||||
|
|
Loading…
Reference in New Issue