Test that onion or i2p domain is active

main
Bob Mottram 2022-03-14 13:31:23 +00:00
parent cc9427ae4e
commit a2e864a1bc
1 changed files with 10 additions and 9 deletions

View File

@ -3301,6 +3301,7 @@ def _inbox_after_initial(recent_posts_cache: {}, max_recent_posts: int,
"""
# if this is a clearnet instance then replace any onion/i2p
# domains with the account domain
if onion_domain or i2p_domain:
message_str = json.dumps(message_json, ensure_ascii=False)
if onion_domain:
if onion_domain in message_str: