From 202d43c25de08f4ef2010e107f6fef108b8ff297 Mon Sep 17 00:00:00 2001 From: Ryan Barrett Date: Mon, 13 Jan 2025 16:36:33 -0800 Subject: [PATCH] temporarily stop handling newsmast's undos of reposts they've been sending 1-2qps of them to us for a while now, pretty much all spurious, or valid but older than we'd know about. cc #1686 --- activitypub.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/activitypub.py b/activitypub.py index 110bc219..896a92d8 100644 --- a/activitypub.py +++ b/activitypub.py @@ -1094,6 +1094,11 @@ def inbox(protocol=None, id=None): logger.info(f'{actor_domain} is opted out') return '', 204 + # temporary, see emails w/Michael et al, and + # https://github.com/snarfed/bridgy-fed/issues/1686 + if actor_domain == 'newsmast.community' and type == 'Undo': + return ':(', 204 + id = activity.get('id') obj_id = obj.get('id') if id and actor_domain != util.domain_from_link(id):