Drop View activities

This commit is contained in:
Thomas Sileo 2022-09-20 12:22:00 +02:00
parent b3f25e7da1
commit e0ad21f335

View file

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