diff --git a/newsdaemon.py b/newsdaemon.py index 23aa390a..f7edd161 100644 --- a/newsdaemon.py +++ b/newsdaemon.py @@ -94,7 +94,6 @@ def convertRSStoActivityPub(baseDir: str, httpPrefix: str, followersOnly = False useBlurhash = False - print('RSS title 1: ' + str(rssTitle)) blog = createNewsPost(baseDir, 'news', domain, port, httpPrefix, rssDescription, followersOnly, False, diff --git a/posts.py b/posts.py index 16619054..4f7ff8ad 100644 --- a/posts.py +++ b/posts.py @@ -657,7 +657,7 @@ def appendEventFields(newPost: {}, newPost['sensitive'] = False -def validContentWarning(cw: str) -> str: +def validContentWarnings(cw: str) -> str: """Returns a validated content warning """ cw = removeHtml(cw) @@ -722,7 +722,9 @@ def createPostBase(baseDir: str, nickname: str, domain: str, port: int, eventStatus=None, ticketUrl=None) -> {}: """Creates a message """ + print("Subject 1: " + subject) subject = addAutoCW(baseDir, nickname, domain, subject, content) + print("Subject 2: " + subject) mentionedRecipients = \ getMentionedPeople(baseDir, httpPrefix, content, domain, False) @@ -766,6 +768,7 @@ def createPostBase(baseDir: str, nickname: str, domain: str, port: int, if subject: summary = validContentWarning(subject) sensitive = True + print("Subject 3: " + summary) toRecipients = [] toCC = [] @@ -1206,7 +1209,6 @@ def createNewsPost(baseDir: str, eventDate = None eventTime = None location = None - print('RSS title 2: ' + str(subject)) blog = \ createPublicPost(baseDir, nickname, domain, port, httpPrefix,