Handle situations where no actor summary exists

main
Bob Mottram 2024-05-15 17:13:36 +01:00
parent 13c6c69b0f
commit 4d38cce27b
1 changed files with 3 additions and 2 deletions

View File

@ -472,8 +472,9 @@ def html_new_post(edit_post_params: {},
attrib_url,
person_cache)
if reply_to_actor:
summary = \
reply_to_actor['summary']
summary = None
if reply_to_actor.get('summary'):
summary = reply_to_actor['summary']
if summary:
if not dangerous_markup(summary,
False, []):