Skip to content

Commit

Permalink
temporarily stop handling newsmast's undos of reposts
Browse files Browse the repository at this point in the history
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
  • Loading branch information
snarfed committed Jan 14, 2025
1 parent 32a60c9 commit 202d43c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions activitypub.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 202d43c

Please sign in to comment.