forked from indymedia/epicyon
Check for type field
parent
e61e8bb21b
commit
e007168cd6
2
inbox.py
2
inbox.py
|
@ -1920,6 +1920,8 @@ def inboxUpdateCalendar(baseDir: str, handle: str, postJsonObject: {}) -> None:
|
||||||
actorNickname, actorDomain):
|
actorNickname, actorDomain):
|
||||||
return
|
return
|
||||||
for tagDict in postJsonObject['object']['tag']:
|
for tagDict in postJsonObject['object']['tag']:
|
||||||
|
if not tagDict.get('type'):
|
||||||
|
continue
|
||||||
if tagDict['type'] != 'Event':
|
if tagDict['type'] != 'Event':
|
||||||
continue
|
continue
|
||||||
if not tagDict.get('startTime'):
|
if not tagDict.get('startTime'):
|
||||||
|
|
3
posts.py
3
posts.py
|
@ -1918,8 +1918,7 @@ def addToField(activityType: str, postJsonObject: {},
|
||||||
|
|
||||||
|
|
||||||
def sendToNamedAddresses(session, baseDir: str,
|
def sendToNamedAddresses(session, baseDir: str,
|
||||||
nickname: str,
|
nickname: str, domain: str,
|
||||||
domain: str,
|
|
||||||
onionDomain: str, i2pDomain: str, port: int,
|
onionDomain: str, i2pDomain: str, port: int,
|
||||||
httpPrefix: str, federationList: [],
|
httpPrefix: str, federationList: [],
|
||||||
sendThreads: [], postLog: [],
|
sendThreads: [], postLog: [],
|
||||||
|
|
Loading…
Reference in New Issue