Merge branch 'fix-delete-forwarding' into 'master'
Fix forwarding delete is ignored by cache See merge request pleroma/relay!38
This commit is contained in:
commit
cae19ff176
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