Make final implementation correctly handle follower addressing
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
Anthony Wang 2023-01-31 00:29:57 +00:00
parent c58852bf89
commit fa4bcf2ab3
Signed by: a
GPG key ID: 42A5B952E6DD8D38

View file

@ -256,7 +256,7 @@ class ActivityPubHandler(SimpleHTTPRequestHandler):
# Client sending an outgoing activity!
list_append(username, 'outbox', activity)
for to in activity['to']:
if to == 'followers':
if 'followers' in to
# Tell all my followers!
with open(f'users/{username}.followers') as f:
for follower in load(f)['orderedItems']: