diff --git a/webapp_calendar.py b/webapp_calendar.py
index 7a7366e4e..77d35f1d1 100644
--- a/webapp_calendar.py
+++ b/webapp_calendar.py
@@ -493,16 +493,18 @@ def html_calendar(person_cache: {}, translate: {},
if '/users/' in actor:
cal_actor = '/users/' + actor.split('/users/')[1]
+ banner_file, _ = \
+ get_banner_file(base_dir, nickname, domain, theme)
+ banner_path = '/users/' + nickname + '/' + banner_file
+
instance_title = \
get_config_param(base_dir, 'instanceTitle')
- preload_images = []
+ preload_images = [banner_path]
header_str = \
html_header_with_external_style(css_filename, instance_title, None,
preload_images)
# show banner
- banner_file, _ = \
- get_banner_file(base_dir, nickname, domain, theme)
calendar_str = \
'\n'
# the main graphical calendar as a table
diff --git a/webapp_create_post.py b/webapp_create_post.py
index c76000680..824a22743 100644
--- a/webapp_create_post.py
+++ b/webapp_create_post.py
@@ -389,6 +389,7 @@ def html_new_post(edit_post_params: {},
# filename of the banner shown at the top
banner_file, _ = \
get_banner_file(base_dir, nickname, domain, theme)
+ banner_path = '/users/' + nickname + '/' + banner_file
if not path.endswith('/newshare') and not path.endswith('/newwanted'):
if not path.endswith('/newreport'):
@@ -1085,7 +1086,7 @@ def html_new_post(edit_post_params: {},
date_and_location += end_edit_section()
instance_title = get_config_param(base_dir, 'instanceTitle')
- preload_images = []
+ preload_images = [banner_path]
new_post_form = html_header_with_external_style(css_filename,
instance_title, None,
preload_images)
@@ -1099,7 +1100,7 @@ def html_new_post(edit_post_params: {},
'accesskey="' + access_keys['menuTimeline'] + '">\n'
new_post_form += '\n' + \
+ banner_path + '" alt="" />\n' + \
'\n'
mentions_str = ''