Drop View activities

quote-url-support
Thomas Sileo 2022-09-20 12:22:00 +02:00
rodzic b3f25e7da1
commit e0ad21f335
1 zmienionych plików z 3 dodań i 0 usunięć

Wyświetl plik

@ -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")