mirror of https://gitlab.com/bashrc2/epicyon
Snake case
parent
909d13a7fc
commit
ee5cbb2c5d
4
blog.py
4
blog.py
|
@ -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')
|
||||
|
|
2
utils.py
2
utils.py
|
@ -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'):
|
||||
|
|
Loading…
Reference in New Issue