mirror of https://gitlab.com/bashrc2/epicyon
Alternative pattern for undo follow
parent
f3620ff2a0
commit
210bc55ce6
6
inbox.py
6
inbox.py
|
@ -1088,13 +1088,13 @@ def _receive_undo_follow(base_dir: str, message_json: {},
|
||||||
get_nickname_from_actor(following_actor)
|
get_nickname_from_actor(following_actor)
|
||||||
if not nickname_following:
|
if not nickname_following:
|
||||||
print('WARN: undo follow request unable to find nickname in ' +
|
print('WARN: undo follow request unable to find nickname in ' +
|
||||||
message_json['object']['object'])
|
following_actor)
|
||||||
return False
|
return False
|
||||||
domain_following, port_following = \
|
domain_following, port_following = \
|
||||||
get_domain_from_actor(message_json['object']['object'])
|
get_domain_from_actor(following_actor)
|
||||||
if not domain_following:
|
if not domain_following:
|
||||||
print('WARN: undo follow request unable to find domain in ' +
|
print('WARN: undo follow request unable to find domain in ' +
|
||||||
message_json['object']['object'])
|
following_actor)
|
||||||
return False
|
return False
|
||||||
if onion_domain:
|
if onion_domain:
|
||||||
if domain_following.endswith(onion_domain):
|
if domain_following.endswith(onion_domain):
|
||||||
|
|
Loading…
Reference in New Issue