From 022ecf1eb8e10551b0b712b97b4dcf12dff435a6 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Mon, 27 Dec 2021 18:00:51 +0000 Subject: [PATCH] Snake case --- inbox.py | 4 ++-- utils.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/inbox.py b/inbox.py index f7091f549..cbfb36b75 100644 --- a/inbox.py +++ b/inbox.py @@ -47,7 +47,7 @@ from utils import isPublicPost from utils import get_cached_post_filename from utils import remove_post_from_cache from utils import urlPermitted -from utils import createInboxQueueDir +from utils import create_inbox_queue_dir from utils import get_status_number from utils import getDomainFromActor from utils import getNicknameFromActor @@ -550,7 +550,7 @@ def savePostToInboxQueue(base_dir: str, http_prefix: str, # NOTE: don't change post_json_object['id'] before signature check - inbox_queueDir = createInboxQueueDir(nickname, domain, base_dir) + inbox_queueDir = create_inbox_queue_dir(nickname, domain, base_dir) handle = nickname + '@' + domain destination = base_dir + '/accounts/' + \ diff --git a/utils.py b/utils.py index 210547dde..094eded17 100644 --- a/utils.py +++ b/utils.py @@ -803,7 +803,7 @@ def create_outbox_dir(nickname: str, domain: str, base_dir: str) -> str: return createPersonDir(nickname, domain, base_dir, 'outbox') -def createInboxQueueDir(nickname: str, domain: str, base_dir: str) -> str: +def create_inbox_queue_dir(nickname: str, domain: str, base_dir: str) -> str: """Create an inbox queue and returns the feed filename and directory """ return createPersonDir(nickname, domain, base_dir, 'queue')