Fix forwarding delete is ignored by cache
This commit is contained in:
parent
729477820f
commit
bcde15e6f8
1 changed files with 2 additions and 1 deletions
|
@ -39,8 +39,9 @@ async def handle_relay(actor, data, request):
|
|||
async def handle_forward(actor, data, request):
|
||||
cache = app['cache'].objects
|
||||
object_id = misc.distill_object_id(data)
|
||||
object_type = data['type']
|
||||
|
||||
if object_id in cache:
|
||||
if object_id in cache and object_type != 'Delete':
|
||||
logging.verbose(f'already forwarded {object_id}')
|
||||
return
|
||||
|
||||
|
|
Loading…
Reference in a new issue