mirror of
https://git.sr.ht/~tsileo/microblog.pub
synced 2024-12-21 20:54:27 +00:00
Drop View activities
This commit is contained in:
parent
b3f25e7da1
commit
e0ad21f335
1 changed files with 3 additions and 0 deletions
|
@ -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")
|
||||
|
||||
|
|
Loading…
Reference in a new issue