forward all non-Follow undos

This commit is contained in:
Izalia Mae 2022-11-05 20:15:40 -04:00
parent c0d55cebb0
commit 4d121adaa2

View file

@ -87,13 +87,9 @@ async def handle_follow(actor, data, request):
async def handle_undo(actor, data, request):
## If the activity being undone is an Announce, forward it insteead
if data['object']['type'] == 'Announce':
await handle_forward(actor, data, request)
return
elif data['object']['type'] != 'Follow':
return
## If the object is not a Follow, forward it
if data['object']['type'] != 'Follow':
return await handle_forward(actor, data, request)
database = app['database']
inbox = database.get_inbox(actor['id'])