main
Bob Mottram 2020-10-07 23:05:26 +01:00
parent dd2c1c99b2
commit e7897d3226
2 changed files with 4 additions and 3 deletions

View File

@ -94,7 +94,6 @@ def convertRSStoActivityPub(baseDir: str, httpPrefix: str,
followersOnly = False followersOnly = False
useBlurhash = False useBlurhash = False
print('RSS title 1: ' + str(rssTitle))
blog = createNewsPost(baseDir, blog = createNewsPost(baseDir,
'news', domain, port, httpPrefix, 'news', domain, port, httpPrefix,
rssDescription, followersOnly, False, rssDescription, followersOnly, False,

View File

@ -657,7 +657,7 @@ def appendEventFields(newPost: {},
newPost['sensitive'] = False newPost['sensitive'] = False
def validContentWarning(cw: str) -> str: def validContentWarnings(cw: str) -> str:
"""Returns a validated content warning """Returns a validated content warning
""" """
cw = removeHtml(cw) cw = removeHtml(cw)
@ -722,7 +722,9 @@ def createPostBase(baseDir: str, nickname: str, domain: str, port: int,
eventStatus=None, ticketUrl=None) -> {}: eventStatus=None, ticketUrl=None) -> {}:
"""Creates a message """Creates a message
""" """
print("Subject 1: " + subject)
subject = addAutoCW(baseDir, nickname, domain, subject, content) subject = addAutoCW(baseDir, nickname, domain, subject, content)
print("Subject 2: " + subject)
mentionedRecipients = \ mentionedRecipients = \
getMentionedPeople(baseDir, httpPrefix, content, domain, False) getMentionedPeople(baseDir, httpPrefix, content, domain, False)
@ -766,6 +768,7 @@ def createPostBase(baseDir: str, nickname: str, domain: str, port: int,
if subject: if subject:
summary = validContentWarning(subject) summary = validContentWarning(subject)
sensitive = True sensitive = True
print("Subject 3: " + summary)
toRecipients = [] toRecipients = []
toCC = [] toCC = []
@ -1206,7 +1209,6 @@ def createNewsPost(baseDir: str,
eventDate = None eventDate = None
eventTime = None eventTime = None
location = None location = None
print('RSS title 2: ' + str(subject))
blog = \ blog = \
createPublicPost(baseDir, createPublicPost(baseDir,
nickname, domain, port, httpPrefix, nickname, domain, port, httpPrefix,