Reformat the files with black
This commit is contained in:
parent
3d74c5ff7e
commit
2655aa8fa5
8 changed files with 30 additions and 20 deletions
|
@ -10,7 +10,7 @@ from little_boxes.webfinger import get_actor_url
|
|||
def lookup(url: str) -> ap.BaseActivity:
|
||||
"""Try to find an AP object related to the given URL."""
|
||||
try:
|
||||
if url.startswith('@'):
|
||||
if url.startswith("@"):
|
||||
actor_url = get_actor_url(url)
|
||||
if actor_url:
|
||||
return ap.fetch_remote_activity(actor_url)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue