mirror of https://gitlab.com/bashrc2/epicyon
Fix line lengths
parent
4e49a98857
commit
2fe3da8f34
|
@ -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):
|
||||
|
|
6
inbox.py
6
inbox.py
|
@ -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
|
||||
|
|
3
posts.py
3
posts.py
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue