From 0a99b20f4d91d16e7b9dbb6214eb1bcc4f84f254 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Tue, 1 Oct 2019 13:13:49 +0100 Subject: [PATCH] Rename function --- inbox.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/inbox.py b/inbox.py index 6851ad1ae..55f5ae1be 100644 --- a/inbox.py +++ b/inbox.py @@ -1160,7 +1160,7 @@ def validPostContent(messageJson: {},maxMentions: int) -> bool: print('ACCEPT: post content is valid') return True -def obtainReplyToAvatar(baseDir: str,personCache: {},postJsonObject: {}) -> None: +def obtainAvatarForReplyPost(baseDir: str,personCache: {},postJsonObject: {}) -> None: """Tries to obtain the actor for the person being replied to so that their avatar can later be shown """ @@ -1267,7 +1267,7 @@ def inboxAfterCapabilities(session,keyId: str,handle: str,messageJson: {}, \ if messageJson.get('postNickname'): if validPostContent(messageJson['post'],maxMentions): - obtainReplyToAvatar(baseDir,personCache,messageJson['post']) + obtainAvatarForReplyPost(baseDir,personCache,messageJson['post']) try: with open(destinationFilename, 'w+') as fp: commentjson.dump(messageJson['post'], fp, indent=4, sort_keys=False) @@ -1275,7 +1275,7 @@ def inboxAfterCapabilities(session,keyId: str,handle: str,messageJson: {}, \ print(e) else: if validPostContent(messageJson,maxMentions): - obtainReplyToAvatar(baseDir,personCache,messageJson) + obtainAvatarForReplyPost(baseDir,personCache,messageJson) try: with open(destinationFilename, 'w+') as fp: commentjson.dump(messageJson, fp, indent=4, sort_keys=False)