Remove unused argument

main
Bob Mottram 2024-02-09 14:49:47 +00:00
parent ad20755481
commit 32ed1ed7b3
2 changed files with 7 additions and 13 deletions

View File

@ -17374,8 +17374,6 @@ class PubServer(BaseHTTPRequestHandler):
msg = html_edit_newswire(translate, msg = html_edit_newswire(translate,
base_dir, base_dir,
path, domain, path, domain,
port,
http_prefix,
self.server.default_timeline, self.server.default_timeline,
self.server.theme_name, self.server.theme_name,
access_keys, access_keys,
@ -17412,8 +17410,7 @@ class PubServer(BaseHTTPRequestHandler):
'/statuses/' + post_id '/statuses/' + post_id
path = path.split('/editnewspost=')[0] path = path.split('/editnewspost=')[0]
msg = html_edit_news_post(translate, base_dir, msg = html_edit_news_post(translate, base_dir,
path, domain, port, path, domain,
http_prefix,
post_url, post_url,
self.server.system_language) self.server.system_language)
if msg: if msg:
@ -19920,7 +19917,6 @@ class PubServer(BaseHTTPRequestHandler):
nickname, nickname,
self.server.domain, self.server.domain,
self.server.domain_full, self.server.domain_full,
self.server.http_prefix,
self.server.translate, self.server.translate,
self.server.newswire, self.server.newswire,
self.server.positive_voting, self.server.positive_voting,

View File

@ -468,8 +468,7 @@ def html_citations(base_dir: str, nickname: str, domain: str,
def html_newswire_mobile(base_dir: str, nickname: str, def html_newswire_mobile(base_dir: str, nickname: str,
domain: str, domain_full: str, domain: str, domain_full: str,
http_prefix: str, translate: {}, translate: {}, newswire: {},
newswire: {},
positive_voting: bool, positive_voting: bool,
timeline_path: str, timeline_path: str,
show_publish_as_icon: bool, show_publish_as_icon: bool,
@ -547,8 +546,7 @@ def html_newswire_mobile(base_dir: str, nickname: str,
def html_edit_newswire(translate: {}, base_dir: str, path: str, def html_edit_newswire(translate: {}, base_dir: str, path: str,
domain: str, port: int, http_prefix: str, domain: str, default_timeline: str, theme: str,
default_timeline: str, theme: str,
access_keys: {}, dogwhistles: {}) -> str: access_keys: {}, dogwhistles: {}) -> str:
"""Shows the edit newswire screen """Shows the edit newswire screen
""" """
@ -689,7 +687,7 @@ def html_edit_newswire(translate: {}, base_dir: str, path: str,
def html_edit_news_post(translate: {}, base_dir: str, path: str, def html_edit_news_post(translate: {}, base_dir: str, path: str,
domain: str, port: int, http_prefix: str, postUrl: str, domain: str, post_url: str,
system_language: str) -> str: system_language: str) -> str:
"""Edits a news post on the news/features timeline """Edits a news post on the news/features timeline
""" """
@ -705,8 +703,8 @@ def html_edit_news_post(translate: {}, base_dir: str, path: str,
if not is_editor(base_dir, nickname): if not is_editor(base_dir, nickname):
return '' return ''
postUrl = postUrl.replace('/', '#') post_url = post_url.replace('/', '#')
post_filename = locate_post(base_dir, nickname, domain, postUrl) post_filename = locate_post(base_dir, nickname, domain, post_url)
if not post_filename: if not post_filename:
return '' return ''
post_json_object = load_json(post_filename) post_json_object = load_json(post_filename)
@ -744,7 +742,7 @@ def html_edit_news_post(translate: {}, base_dir: str, path: str,
edit_news_post_form += \ edit_news_post_form += \
' <input type="hidden" name="newsPostUrl" value="' + \ ' <input type="hidden" name="newsPostUrl" value="' + \
postUrl + '">\n' post_url + '">\n'
news_post_title = post_json_object['object']['summary'] news_post_title = post_json_object['object']['summary']
edit_news_post_form += \ edit_news_post_form += \