mirror of https://gitlab.com/bashrc2/epicyon
Debug
parent
01ecf7d1a3
commit
9c7895e43a
7
inbox.py
7
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
|
||||
|
||||
|
||||
|
|
1
utils.py
1
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',
|
||||
|
|
Loading…
Reference in New Issue