mirror of https://gitlab.com/bashrc2/epicyon
Show return value in debug mode
parent
21b9cd6514
commit
53eeb041fd
|
@ -451,9 +451,8 @@ def _receive_new_post_process_editblog(self, fields: {},
|
||||||
save_json(post_json_object, post_filename)
|
save_json(post_json_object, post_filename)
|
||||||
print('Edited blog post, resaved ' + post_filename)
|
print('Edited blog post, resaved ' + post_filename)
|
||||||
return NEW_POST_SUCCESS
|
return NEW_POST_SUCCESS
|
||||||
else:
|
print('Edited blog post, unable to load json for ' +
|
||||||
print('Edited blog post, unable to load json for ' +
|
post_filename)
|
||||||
post_filename)
|
|
||||||
else:
|
else:
|
||||||
print('Edited blog post not found ' +
|
print('Edited blog post not found ' +
|
||||||
str(fields['postUrl']))
|
str(fields['postUrl']))
|
||||||
|
@ -2266,40 +2265,44 @@ def receive_new_post(self, post_type, path: str,
|
||||||
# otherwise any attachments can get mangled if
|
# otherwise any attachments can get mangled if
|
||||||
# other events happen during their decoding
|
# other events happen during their decoding
|
||||||
print('Creating new post from: ' + new_post_thread_name)
|
print('Creating new post from: ' + new_post_thread_name)
|
||||||
_receive_new_post_process(self, post_type,
|
retval = \
|
||||||
original_path,
|
_receive_new_post_process(self, post_type,
|
||||||
headers, length,
|
original_path,
|
||||||
post_bytes, boundary,
|
headers, length,
|
||||||
calling_domain, cookie,
|
post_bytes, boundary,
|
||||||
content_license_url,
|
calling_domain, cookie,
|
||||||
curr_session, proxy_type,
|
content_license_url,
|
||||||
base_dir, debug, max_post_length,
|
curr_session, proxy_type,
|
||||||
domain, city, low_bandwidth,
|
base_dir, debug, max_post_length,
|
||||||
translate, system_language,
|
domain, city, low_bandwidth,
|
||||||
http_prefix, domain_full,
|
translate, system_language,
|
||||||
person_cache,
|
http_prefix, domain_full,
|
||||||
port, auto_cw_cache,
|
person_cache,
|
||||||
recent_posts_cache,
|
port, auto_cw_cache,
|
||||||
allow_local_network_access,
|
recent_posts_cache,
|
||||||
yt_replace_domain,
|
allow_local_network_access,
|
||||||
twitter_replacement_domain,
|
yt_replace_domain,
|
||||||
signing_priv_key_pem,
|
twitter_replacement_domain,
|
||||||
show_published_date_only,
|
signing_priv_key_pem,
|
||||||
min_images_for_accounts,
|
show_published_date_only,
|
||||||
peertube_instances,
|
min_images_for_accounts,
|
||||||
max_mentions, max_emoji,
|
peertube_instances,
|
||||||
max_recent_posts,
|
max_mentions, max_emoji,
|
||||||
cached_webfingers,
|
max_recent_posts,
|
||||||
allow_deletion,
|
cached_webfingers,
|
||||||
theme_name,
|
allow_deletion,
|
||||||
max_like_count,
|
theme_name,
|
||||||
cw_lists,
|
max_like_count,
|
||||||
dogwhistles,
|
cw_lists,
|
||||||
max_hashtags,
|
dogwhistles,
|
||||||
buy_sites, project_version,
|
max_hashtags,
|
||||||
max_replies, newswire,
|
buy_sites, project_version,
|
||||||
dm_license_url, block_federated,
|
max_replies, newswire,
|
||||||
onion_domain,
|
dm_license_url, block_federated,
|
||||||
i2p_domain,
|
onion_domain,
|
||||||
max_shares_on_profile)
|
i2p_domain,
|
||||||
|
max_shares_on_profile)
|
||||||
|
if debug:
|
||||||
|
print('DEBUG: _receive_new_post_process returned ' +
|
||||||
|
str(retval))
|
||||||
return page_number
|
return page_number
|
||||||
|
|
Loading…
Reference in New Issue