Ignore activity permitted in outbox

This commit is contained in:
bashrc committed 2021-03-21 12:50:05 +00:00
1 parent 7c2405a9a6
commit 4ad6eaa016
2 files changed
+3 -2

No files matched your search

+1 -1
View File
@@ -1264,7 +1264,7 @@ class PubServer(BaseHTTPRequestHandler):
originalMessageJson = messageJson.copy()
addToFieldTypes = ('Follow', 'Like', 'Add', 'Remove')
addToFieldTypes = ('Follow', 'Like', 'Add', 'Remove', 'Ignore')
for addToType in addToFieldTypes:
messageJson, toFieldExists = \
addToField(addToType, messageJson, self.server.debug)
+2 -1
View File
@@ -311,7 +311,8 @@ def postMessageToOutbox(session, translate: {},
permittedOutboxTypes = ('Create', 'Announce', 'Like', 'Follow', 'Undo',
'Update', 'Add', 'Remove', 'Block', 'Delete',
'Delegate', 'Skill', 'Add', 'Remove', 'Event')
'Delegate', 'Skill', 'Add', 'Remove', 'Event',
'Ignore')
if messageJson['type'] not in permittedOutboxTypes:
if debug:
print('DEBUG: POST to outbox - ' + messageJson['type'] +