forked from indymedia/epicyon
Debug
parent
dd2c1c99b2
commit
e7897d3226
|
@ -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,
|
||||||
|
|
6
posts.py
6
posts.py
|
@ -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,
|
||||||
|
|
Loading…
Reference in New Issue