Snake case

merge-requests/30/head
Bob Mottram 2021-12-26 18:22:20 +00:00
parent 909d13a7fc
commit ee5cbb2c5d
2 changed files with 3 additions and 3 deletions

View File

@ -31,7 +31,7 @@ from utils import getDomainFromActor
from utils import locatePost
from utils import load_json
from utils import firstParagraphFromString
from utils import getActorPropertyUrl
from utils import get_actor_property_url
from utils import acct_dir
from posts import createBlogsTimeline
from newswire import rss2Header
@ -950,4 +950,4 @@ def pathContainsBlogLink(base_dir: str,
def getBlogAddress(actor_json: {}) -> str:
"""Returns blog address for the given actor
"""
return getActorPropertyUrl(actor_json, 'Blog')
return get_actor_property_url(actor_json, 'Blog')

View File

@ -2873,7 +2873,7 @@ def getAltPath(actor: str, domain_full: str, callingDomain: str) -> str:
return postActor
def getActorPropertyUrl(actor_json: {}, property_name: str) -> str:
def get_actor_property_url(actor_json: {}, property_name: str) -> str:
"""Returns a url property from an actor
"""
if not actor_json.get('attachment'):