Check nickname and domain

main
Bob Mottram 2023-01-15 09:14:29 +00:00
parent 74892b4e0a
commit 5e85d26107
1 changed files with 4 additions and 0 deletions

View File

@ -264,7 +264,11 @@ def update_moved_actors(base_dir: str, debug: bool) -> None:
if not actor_json.get('movedTo'): if not actor_json.get('movedTo'):
continue continue
nickname = get_nickname_from_actor(actor_json['movedTo']) nickname = get_nickname_from_actor(actor_json['movedTo'])
if not nickname:
continue
domain, port = get_domain_from_actor(actor_json['movedTo']) domain, port = get_domain_from_actor(actor_json['movedTo'])
if not domain:
continue
domain_full = get_full_domain(domain, port) domain_full = get_full_domain(domain, port)
new_handle = nickname + '@' + domain_full new_handle = nickname + '@' + domain_full
moved_str += handle + ' ' + new_handle + '\n' moved_str += handle + ' ' + new_handle + '\n'