Don't show common emoji on reading status posts

merge-requests/30/head
Bob Mottram 2024-01-03 17:59:31 +00:00
parent c8e605c2dc
commit 1edcc9a3a1
1 changed files with 10 additions and 9 deletions

View File

@ -588,15 +588,16 @@ def html_new_post(edit_post_params: {},
new_post_image_section += end_edit_section()
new_post_emoji_section = ''
common_emoji_str = html_common_emoji(base_dir, 16)
if common_emoji_str:
new_post_emoji_section = \
begin_edit_section('😀 ' + translate['Common emoji'])
new_post_emoji_section += \
'<label class="labels">' + \
translate['Copy and paste into your text'] + '</label><br>\n'
new_post_emoji_section += common_emoji_str
new_post_emoji_section += end_edit_section()
if not path.endswith('/newreadingstatus'):
common_emoji_str = html_common_emoji(base_dir, 16)
if common_emoji_str:
new_post_emoji_section = \
begin_edit_section('😀 ' + translate['Common emoji'])
new_post_emoji_section += \
'<label class="labels">' + \
translate['Copy and paste into your text'] + '</label><br>\n'
new_post_emoji_section += common_emoji_str
new_post_emoji_section += end_edit_section()
scope_icon = 'scope_public.png'
scope_description = translate['Public']