From c4549e9b17932973fd43360f1f688ba905e1fc1c Mon Sep 17 00:00:00 2001 From: Mouse Reeve Date: Fri, 14 Feb 2020 22:19:57 -0800 Subject: [PATCH] TODO cleanup --- fedireads/remote_user.py | 3 +-- fedireads/settings.py | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/fedireads/remote_user.py b/fedireads/remote_user.py index 78811ebd..80e5a53b 100644 --- a/fedireads/remote_user.py +++ b/fedireads/remote_user.py @@ -24,7 +24,6 @@ def get_or_create_remote_user(actor): data = response.json() # the webfinger format for the username. - # TODO: get the user's domain in a better way actor_parts = urlparse(actor) username = '%s@%s' % (actor_parts.path.split('/')[-1], actor_parts.netloc) shared_inbox = data.get('endpoints').get('sharedInbox') if \ @@ -40,7 +39,7 @@ def get_or_create_remote_user(actor): inbox=data['inbox'], #fail if there's no inbox outbox=data['outbox'], # fail if there's no outbox shared_inbox=shared_inbox, - # TODO: probably shouldn't bother to store this for remote users + # TODO: I'm never actually using this for remote users public_key=data.get('publicKey').get('publicKeyPem'), local=False ) diff --git a/fedireads/settings.py b/fedireads/settings.py index 9a65ceb0..3fb98936 100644 --- a/fedireads/settings.py +++ b/fedireads/settings.py @@ -13,7 +13,7 @@ SECRET_KEY = '7(2w1sedok=aznpq)ta1mc4i%4h=xx@hxwx*o57ctsuml0x%fr' # SECURITY WARNING: don't run with debug turned on in production! DEBUG = True -# TODO: this should be populated at runtime at least for debug mode +# TODO: annoying that I keep changing and re-commiting this DOMAIN = '26863dc9.ngrok.io' ALLOWED_HOSTS = ['*'] OL_URL = 'https://openlibrary.org'