From 7a83fb7b873b8d3780313f0f0299e67f4b8d4b02 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sun, 11 Aug 2019 12:33:29 +0100 Subject: [PATCH] Moderation report title --- posts.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/posts.py b/posts.py index 7532bd23..a67898d3 100644 --- a/posts.py +++ b/posts.py @@ -762,6 +762,14 @@ def createReportPost(baseDir: str, if port!=80 and port!=443: domainFull=domain+':'+str(port) + # add a title to distinguish moderation reports from other posts + reportTitle='Moderation Report' + if not subject: + subject=reportTitle + else: + if not subject.startswith(reportTitle): + subject=reportTitle+': '+subject + # create the list of moderators from teh moderators file moderatorsList=[] moderatorsFile=baseDir+'/accounts/moderators.txt'