fix badge thread

pull/136/head
Aevann 2023-03-01 22:57:18 +02:00
parent 30a8de0126
commit b0075fb393
1 changed files with 2 additions and 1 deletions

View File

@ -182,7 +182,8 @@ def comment(v:User):
process_sidebar_or_banner('banners', banner_width)
elif post_target.id == BADGE_THREAD:
try:
badge_def = loads(body)
json_body = '{' + body.split('{')[1].split('}')[0] + '}'
badge_def = loads(json_body)
name = badge_def["name"]
if len(name) > 50: