Fix line lengths

merge-requests/30/head
Bob Mottram 2022-09-21 21:00:57 +01:00
parent 4e49a98857
commit 2fe3da8f34
3 changed files with 7 additions and 5 deletions

View File

@ -15,7 +15,8 @@ from utils import standardize_text
def add_filter(base_dir: str, nickname: str, domain: str, words: str) -> bool:
"""Adds a filter for particular words within the content of a incoming posts
"""Adds a filter for particular words within the content of a
incoming posts
"""
filters_filename = acct_dir(base_dir, nickname, domain) + '/filters.txt'
if os.path.isfile(filters_filename):

View File

@ -1784,9 +1784,9 @@ def _receive_zot_reaction(recent_posts_cache: {},
max_like_count: int, cw_lists: {},
lists_enabled: str, bold_reading: bool,
dogwhistles: {}) -> bool:
"""Receives an zot-style emoji reaction within the POST section of HTTPServer
A zot style emoji reaction is an ordinary reply Note whose content is
exactly one emoji
"""Receives an zot-style emoji reaction within the POST section of
HTTPServer A zot style emoji reaction is an ordinary reply Note whose
content is exactly one emoji
"""
if not has_actor(message_json, debug):
return False

View File

@ -131,7 +131,8 @@ def is_moderator(base_dir: str, nickname: str) -> bool:
def no_of_followers_on_domain(base_dir: str, handle: str,
domain: str, follow_file='followers.txt') -> int:
"""Returns the number of followers of the given handle from the given domain
"""Returns the number of followers of the given handle from the
given domain
"""
filename = base_dir + '/accounts/' + handle + '/' + follow_file
if not os.path.isfile(filename):