mirror of https://gitlab.com/bashrc2/epicyon
Get start time of event
parent
93105821a0
commit
da7d9b4ea4
2
inbox.py
2
inbox.py
|
@ -1375,7 +1375,7 @@ def inboxUpdateCalendar(baseDir: str,handle: str,postJsonObject: {}) -> None:
|
||||||
for tagDict in postJsonObject['object']['tag']:
|
for tagDict in postJsonObject['object']['tag']:
|
||||||
if tagDict['type']!='Event':
|
if tagDict['type']!='Event':
|
||||||
continue
|
continue
|
||||||
if not tagDict['type'].get('startTime'):
|
if not tagDict.get('startTime'):
|
||||||
continue
|
continue
|
||||||
# get the year and month from the event
|
# get the year and month from the event
|
||||||
eventTime= \
|
eventTime= \
|
||||||
|
|
16
posts.py
16
posts.py
|
@ -717,7 +717,7 @@ def outboxMessageCreateWrap(httpPrefix: str, \
|
||||||
return newPost
|
return newPost
|
||||||
|
|
||||||
def postIsAddressedToFollowers(baseDir: str,
|
def postIsAddressedToFollowers(baseDir: str,
|
||||||
nickname: str, domain: str, port: int,httpPrefix: str,
|
nickname: str,domain: str,port: int,httpPrefix: str,
|
||||||
postJsonObject: {}) -> bool:
|
postJsonObject: {}) -> bool:
|
||||||
"""Returns true if the given post is addressed to followers of the nickname
|
"""Returns true if the given post is addressed to followers of the nickname
|
||||||
"""
|
"""
|
||||||
|
@ -816,10 +816,10 @@ def createUnlistedPost(baseDir: str,
|
||||||
if port!=80 and port!=443:
|
if port!=80 and port!=443:
|
||||||
if ':' not in domain:
|
if ':' not in domain:
|
||||||
domainFull=domain+':'+str(port)
|
domainFull=domain+':'+str(port)
|
||||||
return createPostBase(baseDir,nickname, domain, port, \
|
return createPostBase(baseDir,nickname,domain,port, \
|
||||||
httpPrefix+'://'+domainFull+'/users/'+nickname+'/followers', \
|
httpPrefix+'://'+domainFull+'/users/'+nickname+'/followers', \
|
||||||
'https://www.w3.org/ns/activitystreams#Public', \
|
'https://www.w3.org/ns/activitystreams#Public', \
|
||||||
httpPrefix, content, followersOnly, saveToFile, \
|
httpPrefix,content,followersOnly,saveToFile, \
|
||||||
clientToServer, \
|
clientToServer, \
|
||||||
attachImageFilename,mediaType, \
|
attachImageFilename,mediaType, \
|
||||||
imageDescription,useBlurhash, \
|
imageDescription,useBlurhash, \
|
||||||
|
@ -841,10 +841,10 @@ def createFollowersOnlyPost(baseDir: str,
|
||||||
if port!=80 and port!=443:
|
if port!=80 and port!=443:
|
||||||
if ':' not in domain:
|
if ':' not in domain:
|
||||||
domainFull=domain+':'+str(port)
|
domainFull=domain+':'+str(port)
|
||||||
return createPostBase(baseDir,nickname, domain, port, \
|
return createPostBase(baseDir,nickname,domain,port, \
|
||||||
httpPrefix+'://'+domainFull+'/users/'+nickname+'/followers', \
|
httpPrefix+'://'+domainFull+'/users/'+nickname+'/followers', \
|
||||||
None,
|
None,
|
||||||
httpPrefix, content, followersOnly, saveToFile, \
|
httpPrefix,content,followersOnly,saveToFile, \
|
||||||
clientToServer, \
|
clientToServer, \
|
||||||
attachImageFilename,mediaType, \
|
attachImageFilename,mediaType, \
|
||||||
imageDescription,useBlurhash, \
|
imageDescription,useBlurhash, \
|
||||||
|
@ -899,13 +899,13 @@ def createDirectMessagePost(baseDir: str,
|
||||||
return None
|
return None
|
||||||
postTo=None
|
postTo=None
|
||||||
postCc=None
|
postCc=None
|
||||||
return createPostBase(baseDir,nickname, domain, port, \
|
return createPostBase(baseDir,nickname,domain,port, \
|
||||||
postTo,postCc, \
|
postTo,postCc, \
|
||||||
httpPrefix, content, followersOnly, saveToFile, \
|
httpPrefix,content,followersOnly,saveToFile, \
|
||||||
clientToServer, \
|
clientToServer, \
|
||||||
attachImageFilename,mediaType, \
|
attachImageFilename,mediaType, \
|
||||||
imageDescription,useBlurhash, \
|
imageDescription,useBlurhash, \
|
||||||
False,inReplyTo, inReplyToAtomUri, subject, \
|
False,inReplyTo,inReplyToAtomUri,subject, \
|
||||||
eventDate,eventTime,location)
|
eventDate,eventTime,location)
|
||||||
|
|
||||||
def createReportPost(baseDir: str,
|
def createReportPost(baseDir: str,
|
||||||
|
|
Loading…
Reference in New Issue