diff --git a/utils.py b/utils.py index 34e9bf893..d689d5b63 100644 --- a/utils.py +++ b/utils.py @@ -255,8 +255,8 @@ def get_full_domain(domain: str, port: int) -> str: return domain + ':' + str(port) -def isDormant(base_dir: str, nickname: str, domain: str, actor: str, - dormant_months: int) -> bool: +def is_dormant(base_dir: str, nickname: str, domain: str, actor: str, + dormant_months: int) -> bool: """Is the given followed actor dormant, from the standpoint of the given account """ diff --git a/webapp_person_options.py b/webapp_person_options.py index 09f3d3296..f78175158 100644 --- a/webapp_person_options.py +++ b/webapp_person_options.py @@ -14,7 +14,7 @@ from person import isPersonSnoozed from posts import isModerator from utils import get_full_domain from utils import getConfigParam -from utils import isDormant +from utils import is_dormant from utils import removeHtml from utils import getDomainFromActor from utils import getNicknameFromActor @@ -93,8 +93,8 @@ def htmlPersonOptions(defaultTimeline: str, if isGroup: followStr = 'Leave' dormant = \ - isDormant(base_dir, nickname, domain, optionsActor, - dormant_months) + is_dormant(base_dir, nickname, domain, optionsActor, + dormant_months) optionsNickname = getNicknameFromActor(optionsActor) optionsDomainFull = get_full_domain(optionsDomain, optionsPort) diff --git a/webapp_profile.py b/webapp_profile.py index 0fb4e4083..4f312784a 100644 --- a/webapp_profile.py +++ b/webapp_profile.py @@ -17,7 +17,7 @@ from utils import getOccupationName from utils import get_locked_account from utils import get_full_domain from utils import isArtist -from utils import isDormant +from utils import is_dormant from utils import getNicknameFromActor from utils import getDomainFromActor from utils import isSystemAccount @@ -1129,8 +1129,8 @@ def _htmlProfileFollowing(translate: {}, base_dir: str, http_prefix: str, dormant = False if authorized and feedName == 'following': dormant = \ - isDormant(base_dir, nickname, domain, followingActor, - dormant_months) + is_dormant(base_dir, nickname, domain, followingActor, + dormant_months) profileStr += \ _individualFollowAsHtml(signing_priv_key_pem,