mirror of https://gitlab.com/bashrc2/epicyon
Max posts number
parent
cc318218e0
commit
9142041f67
|
@ -6518,7 +6518,7 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
# set maximum preview posts on profile screen
|
# set maximum preview posts on profile screen
|
||||||
max_profile_posts = \
|
max_profile_posts = \
|
||||||
get_max_profile_posts(base_dir, nickname, domain,
|
get_max_profile_posts(base_dir, nickname, domain,
|
||||||
self.server.max_recent_posts)
|
20)
|
||||||
if fields.get('maxRecentProfilePosts'):
|
if fields.get('maxRecentProfilePosts'):
|
||||||
if fields['maxRecentProfilePosts'] != \
|
if fields['maxRecentProfilePosts'] != \
|
||||||
str(max_profile_posts):
|
str(max_profile_posts):
|
||||||
|
@ -6528,7 +6528,7 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
max_profile_posts)
|
max_profile_posts)
|
||||||
else:
|
else:
|
||||||
set_max_profile_posts(base_dir, nickname, domain,
|
set_max_profile_posts(base_dir, nickname, domain,
|
||||||
self.server.max_recent_posts)
|
20)
|
||||||
|
|
||||||
# change tox address
|
# change tox address
|
||||||
current_tox_address = get_tox_address(actor_json)
|
current_tox_address = get_tox_address(actor_json)
|
||||||
|
|
Loading…
Reference in New Issue