mirror of https://gitlab.com/bashrc2/epicyon
Option to disable replies on posts
parent
109caa2d5d
commit
b619533866
|
@ -5490,11 +5490,13 @@ class PubServer(BaseHTTPRequestHandler):
|
|||
fields['subject'] = None
|
||||
if not fields.get('replyTo'):
|
||||
fields['replyTo'] = None
|
||||
|
||||
if not fields.get('schedulePost'):
|
||||
fields['schedulePost'] = False
|
||||
else:
|
||||
fields['schedulePost'] = True
|
||||
print('DEBUG: shedulePost ' + str(fields['schedulePost']))
|
||||
|
||||
if not fields.get('eventDate'):
|
||||
fields['eventDate'] = None
|
||||
if not fields.get('eventTime'):
|
||||
|
@ -5520,7 +5522,7 @@ class PubServer(BaseHTTPRequestHandler):
|
|||
if fields.get('mentions'):
|
||||
mentionsStr = fields['mentions'].strip() + ' '
|
||||
commentsEnabled = True
|
||||
if fields.get('commentsEnabled'):
|
||||
if 'commentsEnabled' in fields:
|
||||
commentsEnabled = fields['commentsEnabled']
|
||||
if postType == 'newpost':
|
||||
messageJson = \
|
||||
|
|
|
@ -255,5 +255,6 @@
|
|||
"Liked by": "نال إعجاب",
|
||||
"Solidaric": "تضامن",
|
||||
"YouTube Replacement Domain": "استبدال نطاق يوتيوب",
|
||||
"Notes": "ملاحظات"
|
||||
"Notes": "ملاحظات",
|
||||
"Allow replies.": "السماح بالردود."
|
||||
}
|
||||
|
|
|
@ -255,5 +255,6 @@
|
|||
"Liked by": "M'agrada",
|
||||
"Solidaric": "Solidaritat",
|
||||
"YouTube Replacement Domain": "Domini de substitució de YouTube",
|
||||
"Notes": "Notes"
|
||||
"Notes": "Notes",
|
||||
"Allow replies.": "Permetre respostes."
|
||||
}
|
||||
|
|
|
@ -255,5 +255,6 @@
|
|||
"Liked by": "Hoffi",
|
||||
"Solidaric": "Undod",
|
||||
"YouTube Replacement Domain": "Parth Amnewid YouTube",
|
||||
"Notes": "Nodiadau"
|
||||
"Notes": "Nodiadau",
|
||||
"Allow replies.": "Caniatáu atebion."
|
||||
}
|
||||
|
|
|
@ -255,5 +255,6 @@
|
|||
"Liked by": "Gefallen von",
|
||||
"Solidaric": "Solidarität",
|
||||
"YouTube Replacement Domain": "YouTube-Ersatzdomain",
|
||||
"Notes": "Anmerkungen"
|
||||
"Notes": "Anmerkungen",
|
||||
"Allow replies.": "Antworten zulassen."
|
||||
}
|
||||
|
|
|
@ -255,5 +255,6 @@
|
|||
"Liked by": "Liked by",
|
||||
"Solidaric": "Solidaric",
|
||||
"YouTube Replacement Domain": "YouTube Replacement Domain",
|
||||
"Notes": "Notes"
|
||||
"Notes": "Notes",
|
||||
"Allow replies.": "Allow replies."
|
||||
}
|
||||
|
|
|
@ -255,5 +255,6 @@
|
|||
"Liked by": "Apreciado por",
|
||||
"Solidaric": "Solidaridad",
|
||||
"YouTube Replacement Domain": "Dominio de reemplazo de YouTube",
|
||||
"Notes": "Notas"
|
||||
"Notes": "Notas",
|
||||
"Allow replies.": "Permitir respuestas."
|
||||
}
|
||||
|
|
|
@ -255,5 +255,6 @@
|
|||
"Liked by": "Aimé par",
|
||||
"Solidaric": "Solidarité",
|
||||
"YouTube Replacement Domain": "Domaine de remplacement YouTube",
|
||||
"Notes": "Remarques"
|
||||
"Notes": "Remarques",
|
||||
"Allow replies.": "Autoriser les réponses."
|
||||
}
|
||||
|
|
|
@ -255,5 +255,6 @@
|
|||
"Liked by": "Thaitin",
|
||||
"Solidaric": "Dlúthpháirtíocht",
|
||||
"YouTube Replacement Domain": "Fearann Athsholáthair YouTube",
|
||||
"Notes": "Nótaí"
|
||||
"Notes": "Nótaí",
|
||||
"Allow replies.": "Ceadaigh freagraí."
|
||||
}
|
||||
|
|
|
@ -255,5 +255,6 @@
|
|||
"Liked by": "द्वारा पसंद किया गया",
|
||||
"Solidaric": "एकजुटता",
|
||||
"YouTube Replacement Domain": "YouTube रिप्लेसमेंट डोमेन",
|
||||
"Notes": "टिप्पणियाँ"
|
||||
"Notes": "टिप्पणियाँ",
|
||||
"Allow replies.": "जवाब दें।"
|
||||
}
|
||||
|
|
|
@ -255,5 +255,6 @@
|
|||
"Liked by": "Mi è piaciuto",
|
||||
"Solidaric": "Solidarietà",
|
||||
"YouTube Replacement Domain": "Dominio sostitutivo di YouTube",
|
||||
"Notes": "Appunti"
|
||||
"Notes": "Appunti",
|
||||
"Allow replies.": "Consenti risposte."
|
||||
}
|
||||
|
|
|
@ -255,5 +255,6 @@
|
|||
"Liked by": "好き",
|
||||
"Solidaric": "連帯",
|
||||
"YouTube Replacement Domain": "YouTube交換ドメイン",
|
||||
"Notes": "ノート"
|
||||
"Notes": "ノート",
|
||||
"Allow replies.": "返信を許可します。"
|
||||
}
|
||||
|
|
|
@ -251,5 +251,6 @@
|
|||
"Liked by": "Liked by",
|
||||
"Solidaric": "Solidaric",
|
||||
"YouTube Replacement Domain": "YouTube Replacement Domain",
|
||||
"Notes": "Notes"
|
||||
"Notes": "Notes",
|
||||
"Allow replies.": "Allow replies."
|
||||
}
|
||||
|
|
|
@ -255,5 +255,6 @@
|
|||
"Liked by": "Curtida por",
|
||||
"Solidaric": "Solidariedade",
|
||||
"YouTube Replacement Domain": "Domínio de substituição do YouTube",
|
||||
"Notes": "Notas"
|
||||
"Notes": "Notas",
|
||||
"Allow replies.": "Permitir respostas."
|
||||
}
|
||||
|
|
|
@ -255,5 +255,6 @@
|
|||
"Liked by": "Понравилось",
|
||||
"Solidaric": "солидарность",
|
||||
"YouTube Replacement Domain": "Запасной домен YouTube",
|
||||
"Notes": "Ноты"
|
||||
"Notes": "Ноты",
|
||||
"Allow replies.": "Разрешить ответы."
|
||||
}
|
||||
|
|
|
@ -255,5 +255,6 @@
|
|||
"Liked by": "喜欢的人",
|
||||
"Solidaric": "团结互助",
|
||||
"YouTube Replacement Domain": "YouTube替换域",
|
||||
"Notes": "笔记"
|
||||
"Notes": "笔记",
|
||||
"Allow replies.": "允许回复。"
|
||||
}
|
||||
|
|
|
@ -2029,6 +2029,11 @@ def htmlNewPost(mediaInstance: bool, translate: {},
|
|||
endpoint != 'newquestion':
|
||||
dateAndLocation = '<div class="container">'
|
||||
|
||||
dateAndLocation += \
|
||||
'<p><input type="checkbox" class="profilecheckbox" ' + \
|
||||
'name="commentsEnabled" checked><label class="labels"> ' + \
|
||||
translate['Allow replies.'] + '</label></p>\n'
|
||||
|
||||
if not inReplyTo:
|
||||
dateAndLocation += \
|
||||
'<p><input type="checkbox" class="profilecheckbox" ' + \
|
||||
|
|
Loading…
Reference in New Issue