Skip to content

Commit

Permalink
Protocol.receive: try removing noop check for activities we've alread…
Browse files Browse the repository at this point in the history
…y seen

if this breaks, blame Gina 😎
  • Loading branch information
snarfed committed Jan 6, 2025
1 parent b348a2b commit 2dde62c
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions protocol.py
Original file line number Diff line number Diff line change
Expand Up @@ -847,11 +847,7 @@ def receive(from_cls, obj, authed_as=None, internal=False, received_at=None):
if (obj.as1.get('objectType') == 'activity'
and 'force' not in request.values
and (not leased
or (obj.new is False and obj.changed is False)
# TODO: how does this make sense? won't these two lines
# always be true?!
or (obj.new is None and obj.changed is None
and from_cls.load(id, remote=False)))):
or (obj.new is False and obj.changed is False))):
error(f'Already seen this activity {id}', status=204)

pruned = {k: v for k, v in obj.as1.items()
Expand Down

0 comments on commit 2dde62c

Please sign in to comment.