Scheduled posts are not calendar posts

merge-requests/30/head
Bob Mottram 2020-01-12 13:19:03 +00:00
parent a2e083c7a1
commit 768d8fff4e
1 changed files with 3 additions and 2 deletions

View File

@ -577,13 +577,14 @@ def createPostBase(baseDir: str,nickname: str,domain: str,port: int, \
eventDateStr=eventDate+'T'+eventTime+':00'+strftime("%z", gmtime()) eventDateStr=eventDate+'T'+eventTime+':00'+strftime("%z", gmtime())
else: else:
eventDateStr=eventDate+'T12:00:00Z' eventDateStr=eventDate+'T12:00:00Z'
tags.append({ if not schedulePost:
tags.append({
"@context": "https://www.w3.org/ns/activitystreams", "@context": "https://www.w3.org/ns/activitystreams",
"type": "Event", "type": "Event",
"name": eventName, "name": eventName,
"startTime": eventDateStr, "startTime": eventDateStr,
"endTime": eventDateStr "endTime": eventDateStr
}) })
if location: if location:
tags.append({ tags.append({
"@context": "https://www.w3.org/ns/activitystreams", "@context": "https://www.w3.org/ns/activitystreams",