diff --git a/handlers.py b/handlers.py index 35e89dc..aa84873 100644 --- a/handlers.py +++ b/handlers.py @@ -338,12 +338,29 @@ def handle_search(query): ) -def handle_add_form(msg=""): +def handle_add_form(msg="", action_type="index"): + if action_type == "subscribe": + return _respond( + f"
Subscribe to a friend's TinyWeb instance to sync their index
" + f'" + f"" + f"{msg}
" + f'back' + ) return _respond( f"Add a site via URL or Reticulum destination hash
" f'" + f"" f"{msg}
" f'back' ) @@ -921,6 +939,7 @@ def handle_subscriptions(msg=""): f' ' f'' f'' + f'' f'{msg}
' f'