main
bashrc 2026-02-02 15:13:11 +00:00
parent e21fce2938
commit b3bdbca226
1 changed files with 6 additions and 8 deletions

View File

@ -350,10 +350,9 @@ def html_profile_after_search(authorized: bool,
# is this a bot account? # is this a bot account?
if profile_json.get('type'): if profile_json.get('type'):
if profile_json['type']: if isinstance(profile_json['type'], str):
if isinstance(profile_json['type'], str): if profile_json['type'] != 'Person':
if profile_json['type'] != 'Person': display_name = '[' + translate['Bot'] + '] ' + display_name
display_name = '[' + translate['Bot'] + '] ' + display_name
pronouns = get_pronouns(profile_json) pronouns = get_pronouns(profile_json)
discord = get_discord(profile_json) discord = get_discord(profile_json)
@ -1186,10 +1185,9 @@ def html_profile(signing_priv_key_pem: str,
# is this a bot account? # is this a bot account?
if profile_json.get('type'): if profile_json.get('type'):
if profile_json['type']: if isinstance(profile_json['type'], str):
if isinstance(profile_json['type'], str): if profile_json['type'] != 'Person':
if profile_json['type'] != 'Person': display_name = '[' + translate['Bot'] + '] ' + display_name
display_name = '[' + translate['Bot'] + '] ' + display_name
domain_full = get_full_domain(domain, port) domain_full = get_full_domain(domain, port)
profile_status = get_actor_status(profile_json) profile_status = get_actor_status(profile_json)