diff --git a/inbox.py b/inbox.py index 56258023f..8fdc61378 100644 --- a/inbox.py +++ b/inbox.py @@ -789,16 +789,23 @@ def isEventPost(messageJson: {}) -> bool: return False if messageJson['object']['type'] != 'Event': return False + print('Event arriving') if not messageJson['object'].get('startTime'): + print('No event start time') return False if not messageJson['object'].get('actor'): + print('No event actor') return False if not messageJson['object'].get('content'): + print('No event content') return False if not messageJson['object'].get('name'): + print('No event name') return False if not messageJson['object'].get('uuid'): + print('No event UUID') return False + print('Event detected') return True diff --git a/utils.py b/utils.py index 3855083ac..4387f5dcb 100644 --- a/utils.py +++ b/utils.py @@ -613,6 +613,7 @@ def validNickname(domain: str, nickname: str) -> bool: 'public', 'followers', 'channel', 'capabilities', 'calendar', 'tlreplies', 'tlmedia', 'tlblogs', + 'tlevents', 'moderation', 'activity', 'undo', 'reply', 'replies', 'question', 'like', 'likes', 'users', 'statuses',