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,7 +350,6 @@ 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
@ -1186,7 +1185,6 @@ 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