Don't allow scheduling of replies

main
Bob Mottram 2020-01-12 13:05:36 +00:00
parent 667aea1830
commit 84d7145922
1 changed files with 4 additions and 1 deletions

View File

@ -1118,7 +1118,10 @@ def htmlNewPost(mediaInstance: bool,translate: {}, \
dateAndLocation=''
if endpoint!='newshare' and endpoint!='newreport' and endpoint!='newquestion':
dateAndLocation='<div class="container">'
dateAndLocation+='<p><input type="checkbox" class="profilecheckbox" name="schedulePost"><label class="labels">'+translate['This is a scheduled post.']+'</label></p>'
if not inReplyTo:
dateAndLocation+='<p><input type="checkbox" class="profilecheckbox" name="schedulePost"><label class="labels">'+translate['This is a scheduled post.']+'</label></p>'
dateAndLocation+='<p><img loading="lazy" alt="" title="" class="emojicalendar" src="/'+iconsDir+'/calendar.png"/>'
dateAndLocation+='<label class="labels">'+translate['Date']+': </label>'
dateAndLocation+='<input type="date" name="eventDate">'