forked from indymedia/epicyon
Link to event parameters
parent
f263cef884
commit
fa0434ca9c
|
@ -49,6 +49,8 @@ def saveEventPost(baseDir: str, handle: str, postId: str,
|
||||||
If an event has extra fields, as per Mobilizon,
|
If an event has extra fields, as per Mobilizon,
|
||||||
Then it is saved as a separate entity and added to the
|
Then it is saved as a separate entity and added to the
|
||||||
events timeline
|
events timeline
|
||||||
|
See https://framagit.org/framasoft/mobilizon/-/blob/
|
||||||
|
master/lib/federation/activity_stream/converter/event.ex
|
||||||
"""
|
"""
|
||||||
calendarPath = baseDir + '/accounts/' + handle + '/calendar'
|
calendarPath = baseDir + '/accounts/' + handle + '/calendar'
|
||||||
if not os.path.isdir(calendarPath):
|
if not os.path.isdir(calendarPath):
|
||||||
|
|
4
inbox.py
4
inbox.py
|
@ -772,6 +772,8 @@ def receiveUndo(session, baseDir: str, httpPrefix: str,
|
||||||
|
|
||||||
def isEventPost(messageJson: {}) -> bool:
|
def isEventPost(messageJson: {}) -> bool:
|
||||||
"""Is the given post a mobilizon-type event activity?
|
"""Is the given post a mobilizon-type event activity?
|
||||||
|
See https://framagit.org/framasoft/mobilizon/-/blob/
|
||||||
|
master/lib/federation/activity_stream/converter/event.ex
|
||||||
"""
|
"""
|
||||||
if not messageJson.get('id'):
|
if not messageJson.get('id'):
|
||||||
return False
|
return False
|
||||||
|
@ -804,6 +806,8 @@ def receiveEventPost(recentPostsCache: {}, session, baseDir: str,
|
||||||
personCache: {}, messageJson: {}, federationList: [],
|
personCache: {}, messageJson: {}, federationList: [],
|
||||||
nickname: str, debug: bool) -> bool:
|
nickname: str, debug: bool) -> bool:
|
||||||
"""Receive a mobilizon-type event activity
|
"""Receive a mobilizon-type event activity
|
||||||
|
See https://framagit.org/framasoft/mobilizon/-/blob/
|
||||||
|
master/lib/federation/activity_stream/converter/event.ex
|
||||||
"""
|
"""
|
||||||
if not isEventPost(messageJson):
|
if not isEventPost(messageJson):
|
||||||
return
|
return
|
||||||
|
|
Loading…
Reference in New Issue