interrogating

This commit is contained in:
nelle 2024-12-11 15:31:35 -07:00
parent c4a9c0ce90
commit 2ce698df9b

View file

@ -183,7 +183,7 @@ class PostFetcher:
async def fetch_outbox(self, handle): async def fetch_outbox(self, handle):
"""finger handle, a fully-qualified ActivityPub actor name, returning their outbox URL""" """finger handle, a fully-qualified ActivityPub actor name, returning their outbox URL"""
# it's fucking incredible how overengineered ActivityPub is btw # it's fucking incredible how overengineered ActivityPub is btw
print('Fingering ', handle, '...', sep='') print('interrogating ', handle, '...', sep='')
username, at, instance = handle.lstrip('@').partition('@') username, at, instance = handle.lstrip('@').partition('@')
assert at == '@' assert at == '@'
@ -232,7 +232,7 @@ class PostFetcher:
)) ))
except StopIteration: except StopIteration:
# this should never happen either # this should never happen either
raise RuntimeError(f'fatal: while fingering {username}@{instance}, failed to find a profile URL') raise RuntimeError(f'fatal: while interrogating {username}@{instance}, failed to find a profile URL')
async def amain(): async def amain():
import json5 as json import json5 as json