From 97d1ba0fbb31f0849a4a530742d04466948378ec Mon Sep 17 00:00:00 2001 From: freamon Date: Sun, 26 May 2024 02:19:24 +0100 Subject: [PATCH] PeerTube: ignore incoming 'View' activity --- app/activitypub/routes.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/app/activitypub/routes.py b/app/activitypub/routes.py index 70d018aa..626044be 100644 --- a/app/activitypub/routes.py +++ b/app/activitypub/routes.py @@ -412,6 +412,13 @@ def shared_inbox(): else: process_delete_request.delay(request_json, activity_log.id, ip_address()) return '' + # Ignore PeerTube View activity + if 'type' in request_json and request_json['type'] == 'View': + activity_log.result = 'ignored' + activity_log.exception_message = 'PeerTube View activity' + db.session.add(activity_log) + db.session.commit() + return '' else: activity_log.activity_id = '' if g.site.log_activitypub_json: