diff --git a/webinterface.py b/webinterface.py index cc7a90678..081b3cfad 100644 --- a/webinterface.py +++ b/webinterface.py @@ -331,8 +331,18 @@ def htmlNewPost(baseDir: str,path: str,inReplyTo: str,mentions: []) -> str: replyStr='' else: newPostText= \ - '

Enter your report below.

' \ - '

This message only goes to moderators, even if it mentions other fediverse addresses.

' + '

Enter your report below.

' + + # custom report header with any additional instructions + if os.path.isfile(baseDir+'/accounts/report.txt'): + with open(baseDir+'/accounts/report.txt', 'r') as file: + customReportText=file.read() + if '

' not in customReportText: + customReportText='

'+customReportText+'

' + customReportText=customReportText.replace('

','

') + newPostText+=customReportText + + newPostText+='

This message only goes to moderators, even if it mentions other fediverse addresses.

You can also refer to points within the Terms of Service if necessary.

' else: newPostText='

Enter the details for your shared item below.

'