main
bashrc 2026-02-23 21:42:18 +00:00
parent 5dfb479bfc
commit 6a653a182c
2 changed files with 11 additions and 5 deletions

View File

@ -303,6 +303,8 @@ def _receive_new_post_process_newblog(self, fields: {},
cookie, calling_domain, False)
write2(self, message_json)
return NEW_POST_SUCCESS
if debug:
print('New post failed on citations')
return NEW_POST_FAILED
if not fields['subject']:
print('WARN: blog posts must have a title')
@ -384,6 +386,8 @@ def _receive_new_post_process_newblog(self, fields: {},
max_replies,
debug)
return NEW_POST_SUCCESS
if debug:
print('Failed to post new blog')
return NEW_POST_FAILED
@ -1800,6 +1804,8 @@ def _receive_new_post_process(self, post_type: str, path: str, headers: {},
print('DEBUG: receiving POST')
if ' boundary=' not in headers['Content-Type']:
if debug:
print('No boundary in Content-Type header')
return NEW_POST_FAILED
if debug:

View File

@ -1840,7 +1840,7 @@ def _command_options() -> None:
proxy_type = 'tor'
elif argb.i2p or domain.endswith('.i2p'):
proxy_type = 'i2p'
elif argb.yggdrasil_domain or is_yggdrasil_address(domain):
elif argb.yggdrasil or is_yggdrasil_address(domain):
proxy_type = 'yggdrasil'
elif argb.gnunet:
proxy_type = 'gnunet'
@ -2146,7 +2146,7 @@ def _command_options() -> None:
proxy_type = 'i2p'
if domain.endswith('.i2p'):
argb.port = 80
elif argb.yggdrasil_domain or is_yggdrasil_address(domain):
elif argb.yggdrasil or is_yggdrasil_address(domain):
proxy_type = 'yggdrasil'
if is_yggdrasil_address(domain):
argb.port = 80
@ -2234,7 +2234,7 @@ def _command_options() -> None:
proxy_type = 'i2p'
if domain.endswith('.i2p'):
argb.port = 80
elif argb.yggdrasil_domain or is_yggdrasil_address(domain):
elif argb.yggdrasil or is_yggdrasil_address(domain):
proxy_type = 'yggdrasil'
if is_yggdrasil_address(domain):
argb.port = 80
@ -3036,7 +3036,7 @@ def _command_options() -> None:
http_prefix = 'ipns'
if argb.i2p:
http_prefix = 'http'
if argb.yggdrasil_domain:
if argb.yggdrasil:
http_prefix = 'http'
if argb.migrations:
@ -3651,7 +3651,7 @@ def _command_options() -> None:
proxy_type = 'i2p'
if domain.endswith('.i2p'):
argb.port = 80
elif argb.yggdrasil_domain or is_yggdrasil_address(domain):
elif argb.yggdrasil or is_yggdrasil_address(domain):
proxy_type = 'yggdrasil'
if is_yggdrasil_address(domain):
argb.port = 80