mirror of
https://gitlab.com/bashrc2/epicyon
synced 2026-11-02 02:40:12 +00:00
Abbreviate function name
This commit is contained in:
1 parent
9ddad5366b
commit
292fa6fd8f
2 files changed
+5
-5
No files matched your search
@@ -31,7 +31,7 @@ from session import postImage
|
||||
from webfinger import webfingerHandle
|
||||
from httpsig import createSignedHeader
|
||||
from siteactive import siteIsActive
|
||||
from utils import removeInvalidCharacters
|
||||
from utils import removeInvalidChars
|
||||
from utils import fileLastModified
|
||||
from utils import isPublicPost
|
||||
from utils import hasUsersPath
|
||||
@@ -824,7 +824,7 @@ def validContentWarning(cw: str) -> str:
|
||||
# so remove them
|
||||
if '#' in cw:
|
||||
cw = cw.replace('#', '').replace(' ', ' ')
|
||||
return removeInvalidCharacters(cw)
|
||||
return removeInvalidChars(cw)
|
||||
|
||||
|
||||
def _loadAutoCW(baseDir: str, nickname: str, domain: str) -> []:
|
||||
@@ -881,7 +881,7 @@ def _createPostBase(baseDir: str, nickname: str, domain: str, port: int,
|
||||
eventStatus=None, ticketUrl=None) -> {}:
|
||||
"""Creates a message
|
||||
"""
|
||||
content = removeInvalidCharacters(content)
|
||||
content = removeInvalidChars(content)
|
||||
|
||||
subject = _addAutoCW(baseDir, nickname, domain, subject, content)
|
||||
|
||||
@@ -927,7 +927,7 @@ def _createPostBase(baseDir: str, nickname: str, domain: str, port: int,
|
||||
sensitive = False
|
||||
summary = None
|
||||
if subject:
|
||||
summary = removeInvalidCharacters(validContentWarning(subject))
|
||||
summary = removeInvalidChars(validContentWarning(subject))
|
||||
sensitive = True
|
||||
|
||||
toRecipients = []
|
||||
|
||||
Reference in new issue
Block a user