From fa0434ca9cef2a0e09229c5ea86ef5b81b22d9b4 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Thu, 20 Aug 2020 18:08:25 +0100 Subject: [PATCH] Link to event parameters --- happening.py | 2 ++ inbox.py | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/happening.py b/happening.py index c25307ef..1c81e0d5 100644 --- a/happening.py +++ b/happening.py @@ -49,6 +49,8 @@ def saveEventPost(baseDir: str, handle: str, postId: str, If an event has extra fields, as per Mobilizon, Then it is saved as a separate entity and added to the events timeline + See https://framagit.org/framasoft/mobilizon/-/blob/ + master/lib/federation/activity_stream/converter/event.ex """ calendarPath = baseDir + '/accounts/' + handle + '/calendar' if not os.path.isdir(calendarPath): diff --git a/inbox.py b/inbox.py index d7c1baf7..1721105f 100644 --- a/inbox.py +++ b/inbox.py @@ -772,6 +772,8 @@ def receiveUndo(session, baseDir: str, httpPrefix: str, def isEventPost(messageJson: {}) -> bool: """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'): return False @@ -804,6 +806,8 @@ def receiveEventPost(recentPostsCache: {}, session, baseDir: str, personCache: {}, messageJson: {}, federationList: [], nickname: str, debug: bool) -> bool: """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): return