From e0ad21f335b57f49322393e93fe9e7eec5768350 Mon Sep 17 00:00:00 2001 From: Thomas Sileo Date: Tue, 20 Sep 2022 12:22:00 +0200 Subject: [PATCH] Drop View activities --- app/boxes.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/boxes.py b/app/boxes.py index b5151d8..400d5e5 100644 --- a/app/boxes.py +++ b/app/boxes.py @@ -2158,6 +2158,9 @@ async def save_to_inbox( relates_to_outbox_object, relates_to_inbox_object, ) + elif activity_ro.ap_type == "View": + # View is used by Peertube, there's nothing useful we can do with it + await db_session.delete(inbox_object) else: logger.warning(f"Received an unknown {inbox_object.ap_type} object")