mirror of
https://git.pleroma.social/pleroma/relay.git
synced 2024-11-21 22:17:59 +00:00
forward all non-Follow undos
This commit is contained in:
parent
c0d55cebb0
commit
4d121adaa2
|
@ -87,13 +87,9 @@ async def handle_follow(actor, data, request):
|
||||||
|
|
||||||
|
|
||||||
async def handle_undo(actor, data, request):
|
async def handle_undo(actor, data, request):
|
||||||
## If the activity being undone is an Announce, forward it insteead
|
## If the object is not a Follow, forward it
|
||||||
if data['object']['type'] == 'Announce':
|
if data['object']['type'] != 'Follow':
|
||||||
await handle_forward(actor, data, request)
|
return await handle_forward(actor, data, request)
|
||||||
return
|
|
||||||
|
|
||||||
elif data['object']['type'] != 'Follow':
|
|
||||||
return
|
|
||||||
|
|
||||||
database = app['database']
|
database = app['database']
|
||||||
inbox = database.get_inbox(actor['id'])
|
inbox = database.get_inbox(actor['id'])
|
||||||
|
|
Loading…
Reference in a new issue