mirror of https://gitlab.com/bashrc2/epicyon
Snake case
parent
c63e319bb9
commit
a8a4aa3d98
|
@ -171,7 +171,7 @@ def htmlReplaceQuoteMarks(content: str) -> str:
|
|||
return newContent
|
||||
|
||||
|
||||
def dangerousCSS(filename: str, allowLocalNetworkAccess: bool) -> bool:
|
||||
def dangerousCSS(filename: str, allow_local_network_access: bool) -> bool:
|
||||
"""Returns true is the css file contains code which
|
||||
can create security problems
|
||||
"""
|
||||
|
@ -209,7 +209,7 @@ def dangerousCSS(filename: str, allowLocalNetworkAccess: bool) -> bool:
|
|||
|
||||
# an attacker can include html inside of the css
|
||||
# file as a comment and this may then be run from the html
|
||||
if dangerousMarkup(content, allowLocalNetworkAccess):
|
||||
if dangerousMarkup(content, allow_local_network_access):
|
||||
return True
|
||||
return False
|
||||
|
||||
|
|
145
daemon.py
145
daemon.py
|
@ -1296,7 +1296,7 @@ class PubServer(BaseHTTPRequestHandler):
|
|||
self.server.yt_replace_domain,
|
||||
self.server.twitterReplacementDomain,
|
||||
self.server.showPublishedDateOnly,
|
||||
self.server.allowLocalNetworkAccess,
|
||||
self.server.allow_local_network_access,
|
||||
city, self.server.systemLanguage,
|
||||
self.server.shared_items_federated_domains,
|
||||
self.server.sharedItemFederationTokens,
|
||||
|
@ -1446,7 +1446,7 @@ class PubServer(BaseHTTPRequestHandler):
|
|||
return 3
|
||||
|
||||
# sent by an actor on a local network address?
|
||||
if not self.server.allowLocalNetworkAccess:
|
||||
if not self.server.allow_local_network_access:
|
||||
localNetworkPatternList = getLocalNetworkAddresses()
|
||||
for localNetworkPattern in localNetworkPatternList:
|
||||
if localNetworkPattern in messageJson['actor']:
|
||||
|
@ -2131,7 +2131,7 @@ class PubServer(BaseHTTPRequestHandler):
|
|||
onionDomain: str, i2pDomain: str,
|
||||
debug: bool, accessKeys: {},
|
||||
defaultTimeline: str, themeName: str,
|
||||
allowLocalNetworkAccess: bool,
|
||||
allow_local_network_access: bool,
|
||||
systemLanguage: str) -> None:
|
||||
"""Receive POST from webapp_themeDesigner
|
||||
"""
|
||||
|
@ -2168,10 +2168,10 @@ class PubServer(BaseHTTPRequestHandler):
|
|||
'submitThemeDesigner=' not in themeParams:
|
||||
if 'submitThemeDesignerReset=' in themeParams:
|
||||
resetThemeDesignerSettings(base_dir, themeName, domain,
|
||||
allowLocalNetworkAccess,
|
||||
allow_local_network_access,
|
||||
systemLanguage)
|
||||
setTheme(base_dir, themeName, domain,
|
||||
allowLocalNetworkAccess, systemLanguage)
|
||||
allow_local_network_access, systemLanguage)
|
||||
|
||||
if callingDomain.endswith('.onion') and onionDomain:
|
||||
originPathStr = \
|
||||
|
@ -2216,7 +2216,7 @@ class PubServer(BaseHTTPRequestHandler):
|
|||
|
||||
setThemeFromDesigner(base_dir, themeName, domain,
|
||||
themeDesignerParams,
|
||||
allowLocalNetworkAccess,
|
||||
allow_local_network_access,
|
||||
systemLanguage)
|
||||
|
||||
# set boolean values
|
||||
|
@ -2724,7 +2724,7 @@ class PubServer(BaseHTTPRequestHandler):
|
|||
self.server.twitterReplacementDomain,
|
||||
self.server.showPublishedDateOnly,
|
||||
self.server.peertubeInstances,
|
||||
self.server.allowLocalNetworkAccess,
|
||||
self.server.allow_local_network_access,
|
||||
self.server.systemLanguage,
|
||||
self.server.max_like_count,
|
||||
self.server.signingPrivateKeyPem,
|
||||
|
@ -2858,7 +2858,7 @@ class PubServer(BaseHTTPRequestHandler):
|
|||
self.server.twitterReplacementDomain,
|
||||
self.server.showPublishedDateOnly,
|
||||
self.server.peertubeInstances,
|
||||
self.server.allowLocalNetworkAccess,
|
||||
self.server.allow_local_network_access,
|
||||
self.server.systemLanguage,
|
||||
self.server.max_like_count,
|
||||
self.server.signingPrivateKeyPem,
|
||||
|
@ -3307,7 +3307,7 @@ class PubServer(BaseHTTPRequestHandler):
|
|||
self.server.twitterReplacementDomain,
|
||||
self.server.showPublishedDateOnly,
|
||||
self.server.peertubeInstances,
|
||||
self.server.allowLocalNetworkAccess,
|
||||
self.server.allow_local_network_access,
|
||||
self.server.themeName,
|
||||
self.server.systemLanguage,
|
||||
self.server.max_like_count,
|
||||
|
@ -3402,7 +3402,7 @@ class PubServer(BaseHTTPRequestHandler):
|
|||
self.server.twitterReplacementDomain,
|
||||
self.server.showPublishedDateOnly,
|
||||
self.server.peertubeInstances,
|
||||
self.server.allowLocalNetworkAccess,
|
||||
self.server.allow_local_network_access,
|
||||
self.server.themeName, 'outbox',
|
||||
self.server.systemLanguage,
|
||||
self.server.max_like_count,
|
||||
|
@ -3470,7 +3470,7 @@ class PubServer(BaseHTTPRequestHandler):
|
|||
self.server.twitterReplacementDomain,
|
||||
self.server.showPublishedDateOnly,
|
||||
self.server.peertubeInstances,
|
||||
self.server.allowLocalNetworkAccess,
|
||||
self.server.allow_local_network_access,
|
||||
self.server.themeName, 'bookmarks',
|
||||
self.server.systemLanguage,
|
||||
self.server.max_like_count,
|
||||
|
@ -3535,8 +3535,8 @@ class PubServer(BaseHTTPRequestHandler):
|
|||
return
|
||||
else:
|
||||
showPublishedDateOnly = self.server.showPublishedDateOnly
|
||||
allowLocalNetworkAccess = \
|
||||
self.server.allowLocalNetworkAccess
|
||||
allow_local_network_access = \
|
||||
self.server.allow_local_network_access
|
||||
|
||||
accessKeys = self.server.accessKeys
|
||||
if self.server.keyShortcuts.get(nickname):
|
||||
|
@ -3568,7 +3568,7 @@ class PubServer(BaseHTTPRequestHandler):
|
|||
showPublishedDateOnly,
|
||||
self.server.defaultTimeline,
|
||||
self.server.peertubeInstances,
|
||||
allowLocalNetworkAccess,
|
||||
allow_local_network_access,
|
||||
self.server.themeName,
|
||||
accessKeys,
|
||||
self.server.systemLanguage,
|
||||
|
@ -4052,7 +4052,7 @@ class PubServer(BaseHTTPRequestHandler):
|
|||
domain: str, domainFull: str,
|
||||
onionDomain: str, i2pDomain: str, debug: bool,
|
||||
defaultTimeline: str,
|
||||
allowLocalNetworkAccess: bool) -> None:
|
||||
allow_local_network_access: bool) -> None:
|
||||
"""Updates the left links column of the timeline
|
||||
"""
|
||||
usersPath = path.replace('/linksdata', '')
|
||||
|
@ -4151,7 +4151,7 @@ class PubServer(BaseHTTPRequestHandler):
|
|||
if fields.get('editedAbout'):
|
||||
aboutStr = fields['editedAbout']
|
||||
if not dangerousMarkup(aboutStr,
|
||||
allowLocalNetworkAccess):
|
||||
allow_local_network_access):
|
||||
try:
|
||||
with open(aboutFilename, 'w+') as aboutFile:
|
||||
aboutFile.write(aboutStr)
|
||||
|
@ -4168,7 +4168,7 @@ class PubServer(BaseHTTPRequestHandler):
|
|||
if fields.get('editedTOS'):
|
||||
TOSStr = fields['editedTOS']
|
||||
if not dangerousMarkup(TOSStr,
|
||||
allowLocalNetworkAccess):
|
||||
allow_local_network_access):
|
||||
try:
|
||||
with open(TOSFilename, 'w+') as TOSFile:
|
||||
TOSFile.write(TOSStr)
|
||||
|
@ -4193,7 +4193,7 @@ class PubServer(BaseHTTPRequestHandler):
|
|||
domain: str, domainFull: str,
|
||||
onionDomain: str, i2pDomain: str, debug: bool,
|
||||
defaultTimeline: str,
|
||||
allowLocalNetworkAccess: bool) -> None:
|
||||
allow_local_network_access: bool) -> None:
|
||||
"""On the screen after selecting a hashtag from the swarm, this sets
|
||||
the category for that tag
|
||||
"""
|
||||
|
@ -4673,7 +4673,7 @@ class PubServer(BaseHTTPRequestHandler):
|
|||
base_dir: str, http_prefix: str,
|
||||
domain: str, domainFull: str,
|
||||
onionDomain: str, i2pDomain: str,
|
||||
debug: bool, allowLocalNetworkAccess: bool,
|
||||
debug: bool, allow_local_network_access: bool,
|
||||
systemLanguage: str, content_license_url: str) -> None:
|
||||
"""Updates your user profile after editing via the Edit button
|
||||
on the profile screen
|
||||
|
@ -5009,7 +5009,8 @@ class PubServer(BaseHTTPRequestHandler):
|
|||
if fields.get('themeDropdown'):
|
||||
self.server.themeName = fields['themeDropdown']
|
||||
setTheme(base_dir, self.server.themeName, domain,
|
||||
allowLocalNetworkAccess, systemLanguage)
|
||||
allow_local_network_access,
|
||||
systemLanguage)
|
||||
self.server.textModeBanner = \
|
||||
getTextModeBanner(self.server.base_dir)
|
||||
self.server.iconsCache = {}
|
||||
|
@ -5945,10 +5946,10 @@ class PubServer(BaseHTTPRequestHandler):
|
|||
currTheme = getTheme(base_dir)
|
||||
if currTheme:
|
||||
self.server.themeName = currTheme
|
||||
allowLocalNetworkAccess = \
|
||||
self.server.allowLocalNetworkAccess
|
||||
allow_local_network_access = \
|
||||
self.server.allow_local_network_access
|
||||
setTheme(base_dir, currTheme, domain,
|
||||
allowLocalNetworkAccess,
|
||||
allow_local_network_access,
|
||||
systemLanguage)
|
||||
self.server.textModeBanner = \
|
||||
getTextModeBanner(base_dir)
|
||||
|
@ -7545,7 +7546,7 @@ class PubServer(BaseHTTPRequestHandler):
|
|||
self.server.twitterReplacementDomain,
|
||||
self.server.showPublishedDateOnly,
|
||||
self.server.peertubeInstances,
|
||||
self.server.allowLocalNetworkAccess,
|
||||
self.server.allow_local_network_access,
|
||||
self.server.themeName,
|
||||
self.server.systemLanguage,
|
||||
self.server.max_like_count,
|
||||
|
@ -7757,7 +7758,7 @@ class PubServer(BaseHTTPRequestHandler):
|
|||
self.server.twitterReplacementDomain,
|
||||
self.server.showPublishedDateOnly,
|
||||
self.server.peertubeInstances,
|
||||
self.server.allowLocalNetworkAccess,
|
||||
self.server.allow_local_network_access,
|
||||
self.server.themeName,
|
||||
self.server.systemLanguage,
|
||||
self.server.max_like_count,
|
||||
|
@ -8217,7 +8218,7 @@ class PubServer(BaseHTTPRequestHandler):
|
|||
self.server.twitterReplacementDomain,
|
||||
self.server.showPublishedDateOnly,
|
||||
self.server.peertubeInstances,
|
||||
self.server.allowLocalNetworkAccess,
|
||||
self.server.allow_local_network_access,
|
||||
self.server.themeName,
|
||||
self.server.systemLanguage,
|
||||
self.server.max_like_count,
|
||||
|
@ -8371,7 +8372,7 @@ class PubServer(BaseHTTPRequestHandler):
|
|||
self.server.twitterReplacementDomain,
|
||||
self.server.showPublishedDateOnly,
|
||||
self.server.peertubeInstances,
|
||||
self.server.allowLocalNetworkAccess,
|
||||
self.server.allow_local_network_access,
|
||||
self.server.themeName,
|
||||
self.server.systemLanguage,
|
||||
self.server.max_like_count,
|
||||
|
@ -8555,7 +8556,7 @@ class PubServer(BaseHTTPRequestHandler):
|
|||
self.server.twitterReplacementDomain,
|
||||
self.server.showPublishedDateOnly,
|
||||
self.server.peertubeInstances,
|
||||
self.server.allowLocalNetworkAccess,
|
||||
self.server.allow_local_network_access,
|
||||
self.server.themeName,
|
||||
self.server.systemLanguage,
|
||||
self.server.max_like_count,
|
||||
|
@ -8727,7 +8728,7 @@ class PubServer(BaseHTTPRequestHandler):
|
|||
self.server.twitterReplacementDomain,
|
||||
self.server.showPublishedDateOnly,
|
||||
self.server.peertubeInstances,
|
||||
self.server.allowLocalNetworkAccess,
|
||||
self.server.allow_local_network_access,
|
||||
self.server.themeName,
|
||||
self.server.systemLanguage,
|
||||
self.server.max_like_count,
|
||||
|
@ -8825,7 +8826,7 @@ class PubServer(BaseHTTPRequestHandler):
|
|||
self.server.twitterReplacementDomain,
|
||||
self.server.showPublishedDateOnly,
|
||||
self.server.peertubeInstances,
|
||||
self.server.allowLocalNetworkAccess,
|
||||
self.server.allow_local_network_access,
|
||||
self.server.themeName,
|
||||
self.server.systemLanguage,
|
||||
self.server.max_like_count,
|
||||
|
@ -8947,7 +8948,7 @@ class PubServer(BaseHTTPRequestHandler):
|
|||
self.server.twitterReplacementDomain,
|
||||
self.server.showPublishedDateOnly,
|
||||
self.server.peertubeInstances,
|
||||
self.server.allowLocalNetworkAccess,
|
||||
self.server.allow_local_network_access,
|
||||
self.server.themeName,
|
||||
self.server.systemLanguage,
|
||||
self.server.max_like_count,
|
||||
|
@ -9075,7 +9076,7 @@ class PubServer(BaseHTTPRequestHandler):
|
|||
self.server.twitterReplacementDomain,
|
||||
self.server.showPublishedDateOnly,
|
||||
self.server.peertubeInstances,
|
||||
self.server.allowLocalNetworkAccess,
|
||||
self.server.allow_local_network_access,
|
||||
self.server.themeName,
|
||||
self.server.systemLanguage,
|
||||
self.server.max_like_count,
|
||||
|
@ -9172,7 +9173,7 @@ class PubServer(BaseHTTPRequestHandler):
|
|||
self.server.twitterReplacementDomain,
|
||||
self.server.showPublishedDateOnly,
|
||||
self.server.peertubeInstances,
|
||||
self.server.allowLocalNetworkAccess,
|
||||
self.server.allow_local_network_access,
|
||||
self.server.themeName,
|
||||
self.server.systemLanguage,
|
||||
self.server.max_like_count,
|
||||
|
@ -9277,7 +9278,7 @@ class PubServer(BaseHTTPRequestHandler):
|
|||
self.server.twitterReplacementDomain,
|
||||
self.server.showPublishedDateOnly,
|
||||
self.server.peertubeInstances,
|
||||
self.server.allowLocalNetworkAccess,
|
||||
self.server.allow_local_network_access,
|
||||
self.server.themeName,
|
||||
self.server.systemLanguage,
|
||||
self.server.max_like_count,
|
||||
|
@ -9387,7 +9388,7 @@ class PubServer(BaseHTTPRequestHandler):
|
|||
self.server.twitterReplacementDomain,
|
||||
self.server.showPublishedDateOnly,
|
||||
self.server.peertubeInstances,
|
||||
self.server.allowLocalNetworkAccess,
|
||||
self.server.allow_local_network_access,
|
||||
self.server.themeName,
|
||||
self.server.systemLanguage,
|
||||
self.server.max_like_count,
|
||||
|
@ -9509,7 +9510,7 @@ class PubServer(BaseHTTPRequestHandler):
|
|||
twitterReplacementDomain,
|
||||
self.server.showPublishedDateOnly,
|
||||
peertubeInstances,
|
||||
self.server.allowLocalNetworkAccess,
|
||||
self.server.allow_local_network_access,
|
||||
self.server.themeName,
|
||||
self.server.systemLanguage,
|
||||
self.server.max_like_count,
|
||||
|
@ -9601,7 +9602,7 @@ class PubServer(BaseHTTPRequestHandler):
|
|||
twitterReplacementDomain,
|
||||
self.server.showPublishedDateOnly,
|
||||
peertubeInstances,
|
||||
self.server.allowLocalNetworkAccess,
|
||||
self.server.allow_local_network_access,
|
||||
self.server.themeName,
|
||||
self.server.systemLanguage,
|
||||
self.server.max_like_count,
|
||||
|
@ -9707,7 +9708,7 @@ class PubServer(BaseHTTPRequestHandler):
|
|||
self.server.themeName,
|
||||
self.server.dormant_months,
|
||||
self.server.peertubeInstances,
|
||||
self.server.allowLocalNetworkAccess,
|
||||
self.server.allow_local_network_access,
|
||||
self.server.textModeBanner,
|
||||
self.server.debug,
|
||||
accessKeys, city,
|
||||
|
@ -9783,8 +9784,8 @@ class PubServer(BaseHTTPRequestHandler):
|
|||
self.server.showPublishedDateOnly
|
||||
iconsAsButtons = \
|
||||
self.server.iconsAsButtons
|
||||
allowLocalNetworkAccess = \
|
||||
self.server.allowLocalNetworkAccess
|
||||
allow_local_network_access = \
|
||||
self.server.allow_local_network_access
|
||||
accessKeys = self.server.accessKeys
|
||||
if self.server.keyShortcuts.get(nickname):
|
||||
accessKeys = \
|
||||
|
@ -9823,7 +9824,7 @@ class PubServer(BaseHTTPRequestHandler):
|
|||
self.server.themeName,
|
||||
self.server.dormant_months,
|
||||
self.server.peertubeInstances,
|
||||
allowLocalNetworkAccess,
|
||||
allow_local_network_access,
|
||||
self.server.textModeBanner,
|
||||
self.server.debug,
|
||||
accessKeys, city,
|
||||
|
@ -9991,7 +9992,7 @@ class PubServer(BaseHTTPRequestHandler):
|
|||
self.server.twitterReplacementDomain,
|
||||
self.server.showPublishedDateOnly,
|
||||
self.server.peertubeInstances,
|
||||
self.server.allowLocalNetworkAccess,
|
||||
self.server.allow_local_network_access,
|
||||
self.server.themeName,
|
||||
self.server.systemLanguage,
|
||||
self.server.max_like_count,
|
||||
|
@ -10254,7 +10255,7 @@ class PubServer(BaseHTTPRequestHandler):
|
|||
authorized,
|
||||
self.server.themeName,
|
||||
self.server.peertubeInstances,
|
||||
self.server.allowLocalNetworkAccess,
|
||||
self.server.allow_local_network_access,
|
||||
self.server.textModeBanner,
|
||||
accessKeys,
|
||||
self.server.systemLanguage,
|
||||
|
@ -10371,6 +10372,8 @@ class PubServer(BaseHTTPRequestHandler):
|
|||
|
||||
shared_items_federated_domains = \
|
||||
self.server.shared_items_federated_domains
|
||||
allow_local_network_access = \
|
||||
self.server.allow_local_network_access
|
||||
msg = \
|
||||
htmlInboxDMs(self.server.cssCache,
|
||||
self.server.defaultTimeline,
|
||||
|
@ -10402,7 +10405,7 @@ class PubServer(BaseHTTPRequestHandler):
|
|||
self.server.publishButtonAtTop,
|
||||
authorized, self.server.themeName,
|
||||
self.server.peertubeInstances,
|
||||
self.server.allowLocalNetworkAccess,
|
||||
allow_local_network_access,
|
||||
self.server.textModeBanner,
|
||||
accessKeys,
|
||||
self.server.systemLanguage,
|
||||
|
@ -10512,6 +10515,8 @@ class PubServer(BaseHTTPRequestHandler):
|
|||
|
||||
shared_items_federated_domains = \
|
||||
self.server.shared_items_federated_domains
|
||||
allow_local_network_access = \
|
||||
self.server.allow_local_network_access
|
||||
msg = \
|
||||
htmlInboxReplies(self.server.cssCache,
|
||||
self.server.defaultTimeline,
|
||||
|
@ -10543,7 +10548,7 @@ class PubServer(BaseHTTPRequestHandler):
|
|||
self.server.publishButtonAtTop,
|
||||
authorized, self.server.themeName,
|
||||
self.server.peertubeInstances,
|
||||
self.server.allowLocalNetworkAccess,
|
||||
allow_local_network_access,
|
||||
self.server.textModeBanner,
|
||||
accessKeys,
|
||||
self.server.systemLanguage,
|
||||
|
@ -10685,7 +10690,7 @@ class PubServer(BaseHTTPRequestHandler):
|
|||
authorized,
|
||||
self.server.themeName,
|
||||
self.server.peertubeInstances,
|
||||
self.server.allowLocalNetworkAccess,
|
||||
self.server.allow_local_network_access,
|
||||
self.server.textModeBanner,
|
||||
accessKeys,
|
||||
self.server.systemLanguage,
|
||||
|
@ -10827,7 +10832,7 @@ class PubServer(BaseHTTPRequestHandler):
|
|||
authorized,
|
||||
self.server.themeName,
|
||||
self.server.peertubeInstances,
|
||||
self.server.allowLocalNetworkAccess,
|
||||
self.server.allow_local_network_access,
|
||||
self.server.textModeBanner,
|
||||
accessKeys,
|
||||
self.server.systemLanguage,
|
||||
|
@ -10979,7 +10984,7 @@ class PubServer(BaseHTTPRequestHandler):
|
|||
authorized,
|
||||
self.server.themeName,
|
||||
self.server.peertubeInstances,
|
||||
self.server.allowLocalNetworkAccess,
|
||||
self.server.allow_local_network_access,
|
||||
self.server.textModeBanner,
|
||||
accessKeys,
|
||||
self.server.systemLanguage,
|
||||
|
@ -11094,6 +11099,8 @@ class PubServer(BaseHTTPRequestHandler):
|
|||
|
||||
shared_items_federated_domains = \
|
||||
self.server.shared_items_federated_domains
|
||||
allow_local_network_access = \
|
||||
self.server.allow_local_network_access
|
||||
msg = \
|
||||
htmlInboxFeatures(self.server.cssCache,
|
||||
self.server.defaultTimeline,
|
||||
|
@ -11126,7 +11133,7 @@ class PubServer(BaseHTTPRequestHandler):
|
|||
authorized,
|
||||
self.server.themeName,
|
||||
self.server.peertubeInstances,
|
||||
self.server.allowLocalNetworkAccess,
|
||||
allow_local_network_access,
|
||||
self.server.textModeBanner,
|
||||
accessKeys,
|
||||
self.server.systemLanguage,
|
||||
|
@ -11232,7 +11239,7 @@ class PubServer(BaseHTTPRequestHandler):
|
|||
self.server.publishButtonAtTop,
|
||||
authorized, self.server.themeName,
|
||||
self.server.peertubeInstances,
|
||||
self.server.allowLocalNetworkAccess,
|
||||
self.server.allow_local_network_access,
|
||||
self.server.textModeBanner,
|
||||
accessKeys,
|
||||
self.server.systemLanguage,
|
||||
|
@ -11316,7 +11323,7 @@ class PubServer(BaseHTTPRequestHandler):
|
|||
self.server.publishButtonAtTop,
|
||||
authorized, self.server.themeName,
|
||||
self.server.peertubeInstances,
|
||||
self.server.allowLocalNetworkAccess,
|
||||
self.server.allow_local_network_access,
|
||||
self.server.textModeBanner,
|
||||
accessKeys,
|
||||
self.server.systemLanguage,
|
||||
|
@ -11405,6 +11412,8 @@ class PubServer(BaseHTTPRequestHandler):
|
|||
|
||||
shared_items_federated_domains = \
|
||||
self.server.shared_items_federated_domains
|
||||
allow_local_network_access = \
|
||||
self.server.allow_local_network_access
|
||||
msg = \
|
||||
htmlBookmarks(self.server.cssCache,
|
||||
self.server.defaultTimeline,
|
||||
|
@ -11437,7 +11446,7 @@ class PubServer(BaseHTTPRequestHandler):
|
|||
authorized,
|
||||
self.server.themeName,
|
||||
self.server.peertubeInstances,
|
||||
self.server.allowLocalNetworkAccess,
|
||||
allow_local_network_access,
|
||||
self.server.textModeBanner,
|
||||
accessKeys,
|
||||
self.server.systemLanguage,
|
||||
|
@ -11575,7 +11584,7 @@ class PubServer(BaseHTTPRequestHandler):
|
|||
authorized,
|
||||
self.server.themeName,
|
||||
self.server.peertubeInstances,
|
||||
self.server.allowLocalNetworkAccess,
|
||||
self.server.allow_local_network_access,
|
||||
self.server.textModeBanner,
|
||||
accessKeys,
|
||||
self.server.systemLanguage,
|
||||
|
@ -11674,6 +11683,8 @@ class PubServer(BaseHTTPRequestHandler):
|
|||
self.server.shared_items_federated_domains
|
||||
twitterReplacementDomain = \
|
||||
self.server.twitterReplacementDomain
|
||||
allow_local_network_access = \
|
||||
self.server.allow_local_network_access
|
||||
msg = \
|
||||
htmlModeration(self.server.cssCache,
|
||||
self.server.defaultTimeline,
|
||||
|
@ -11705,7 +11716,7 @@ class PubServer(BaseHTTPRequestHandler):
|
|||
authorized, moderationActionStr,
|
||||
self.server.themeName,
|
||||
self.server.peertubeInstances,
|
||||
self.server.allowLocalNetworkAccess,
|
||||
allow_local_network_access,
|
||||
self.server.textModeBanner,
|
||||
accessKeys,
|
||||
self.server.systemLanguage,
|
||||
|
@ -11825,7 +11836,7 @@ class PubServer(BaseHTTPRequestHandler):
|
|||
self.server.themeName,
|
||||
self.server.dormant_months,
|
||||
self.server.peertubeInstances,
|
||||
self.server.allowLocalNetworkAccess,
|
||||
self.server.allow_local_network_access,
|
||||
self.server.textModeBanner,
|
||||
self.server.debug,
|
||||
accessKeys, city,
|
||||
|
@ -11946,7 +11957,7 @@ class PubServer(BaseHTTPRequestHandler):
|
|||
self.server.themeName,
|
||||
self.server.dormant_months,
|
||||
self.server.peertubeInstances,
|
||||
self.server.allowLocalNetworkAccess,
|
||||
self.server.allow_local_network_access,
|
||||
self.server.textModeBanner,
|
||||
self.server.debug,
|
||||
accessKeys, city,
|
||||
|
@ -12066,7 +12077,7 @@ class PubServer(BaseHTTPRequestHandler):
|
|||
self.server.themeName,
|
||||
self.server.dormant_months,
|
||||
self.server.peertubeInstances,
|
||||
self.server.allowLocalNetworkAccess,
|
||||
self.server.allow_local_network_access,
|
||||
self.server.textModeBanner,
|
||||
self.server.debug,
|
||||
accessKeys, city,
|
||||
|
@ -12202,7 +12213,7 @@ class PubServer(BaseHTTPRequestHandler):
|
|||
self.server.themeName,
|
||||
self.server.dormant_months,
|
||||
self.server.peertubeInstances,
|
||||
self.server.allowLocalNetworkAccess,
|
||||
self.server.allow_local_network_access,
|
||||
self.server.textModeBanner,
|
||||
self.server.debug,
|
||||
accessKeys, city,
|
||||
|
@ -12966,7 +12977,7 @@ class PubServer(BaseHTTPRequestHandler):
|
|||
self.server.twitterReplacementDomain,
|
||||
self.server.showPublishedDateOnly,
|
||||
self.server.peertubeInstances,
|
||||
self.server.allowLocalNetworkAccess,
|
||||
self.server.allow_local_network_access,
|
||||
self.server.systemLanguage,
|
||||
self.server.max_like_count,
|
||||
self.server.signingPrivateKeyPem,
|
||||
|
@ -17558,7 +17569,7 @@ class PubServer(BaseHTTPRequestHandler):
|
|||
self.server.i2pDomain,
|
||||
self.server.debug,
|
||||
self.server.defaultTimeline,
|
||||
self.server.allowLocalNetworkAccess)
|
||||
self.server.allow_local_network_access)
|
||||
self.server.POSTbusy = False
|
||||
return
|
||||
|
||||
|
@ -17571,7 +17582,7 @@ class PubServer(BaseHTTPRequestHandler):
|
|||
self.server.domainFull,
|
||||
self.server.onionDomain,
|
||||
self.server.i2pDomain, self.server.debug,
|
||||
self.server.allowLocalNetworkAccess,
|
||||
self.server.allow_local_network_access,
|
||||
self.server.systemLanguage,
|
||||
self.server.content_license_url)
|
||||
self.server.POSTbusy = False
|
||||
|
@ -17585,7 +17596,7 @@ class PubServer(BaseHTTPRequestHandler):
|
|||
self.server.onionDomain,
|
||||
self.server.i2pDomain, self.server.debug,
|
||||
self.server.defaultTimeline,
|
||||
self.server.allowLocalNetworkAccess)
|
||||
self.server.allow_local_network_access)
|
||||
self.server.POSTbusy = False
|
||||
return
|
||||
|
||||
|
@ -17913,7 +17924,7 @@ class PubServer(BaseHTTPRequestHandler):
|
|||
accessKeys,
|
||||
self.server.defaultTimeline,
|
||||
self.server.themeName,
|
||||
self.server.allowLocalNetworkAccess,
|
||||
self.server.allow_local_network_access,
|
||||
self.server.systemLanguage)
|
||||
self.server.POSTbusy = False
|
||||
return
|
||||
|
@ -18416,7 +18427,7 @@ def runDaemon(content_license_url: str,
|
|||
send_threads_timeout_mins: int,
|
||||
dormant_months: int,
|
||||
max_newswire_posts: int,
|
||||
allowLocalNetworkAccess: bool,
|
||||
allow_local_network_access: bool,
|
||||
maxFeedItemSizeKb: int,
|
||||
publishButtonAtTop: bool,
|
||||
rssIconAtTop: bool,
|
||||
|
@ -18565,10 +18576,10 @@ def runDaemon(content_license_url: str,
|
|||
httpd.user_agents_blocked = user_agents_blocked
|
||||
|
||||
httpd.unitTest = unitTest
|
||||
httpd.allowLocalNetworkAccess = allowLocalNetworkAccess
|
||||
httpd.allow_local_network_access = allow_local_network_access
|
||||
if unitTest:
|
||||
# unit tests are run on the local network with LAN addresses
|
||||
httpd.allowLocalNetworkAccess = True
|
||||
httpd.allow_local_network_access = True
|
||||
httpd.yt_replace_domain = yt_replace_domain
|
||||
httpd.twitterReplacementDomain = twitterReplacementDomain
|
||||
|
||||
|
@ -18905,7 +18916,7 @@ def runDaemon(content_license_url: str,
|
|||
httpd.twitterReplacementDomain,
|
||||
httpd.showPublishedDateOnly,
|
||||
httpd.maxFollowers,
|
||||
httpd.allowLocalNetworkAccess,
|
||||
httpd.allow_local_network_access,
|
||||
httpd.peertubeInstances,
|
||||
verify_all_signatures,
|
||||
httpd.themeName,
|
||||
|
|
|
@ -696,7 +696,7 @@ def _readLocalBoxPost(session, nickname: str, domain: str,
|
|||
actor = postJsonObject['actor']
|
||||
nameStr = getNicknameFromActor(actor)
|
||||
recentPostsCache = {}
|
||||
allowLocalNetworkAccess = False
|
||||
allow_local_network_access = False
|
||||
yt_replace_domain = None
|
||||
twitterReplacementDomain = None
|
||||
postJsonObject2 = \
|
||||
|
@ -707,7 +707,7 @@ def _readLocalBoxPost(session, nickname: str, domain: str,
|
|||
__version__, translate,
|
||||
yt_replace_domain,
|
||||
twitterReplacementDomain,
|
||||
allowLocalNetworkAccess,
|
||||
allow_local_network_access,
|
||||
recentPostsCache, False,
|
||||
systemLanguage,
|
||||
domainFull, personCache,
|
||||
|
@ -2394,7 +2394,7 @@ def runDesktopClient(base_dir: str, proxyType: str, http_prefix: str,
|
|||
if postJsonObject:
|
||||
if postJsonObject['type'] == 'Announce':
|
||||
recentPostsCache = {}
|
||||
allowLocalNetworkAccess = False
|
||||
allow_local_network_access = False
|
||||
yt_replace_domain = None
|
||||
twitterReplacementDomain = None
|
||||
postJsonObject2 = \
|
||||
|
@ -2405,7 +2405,7 @@ def runDesktopClient(base_dir: str, proxyType: str, http_prefix: str,
|
|||
__version__, translate,
|
||||
yt_replace_domain,
|
||||
twitterReplacementDomain,
|
||||
allowLocalNetworkAccess,
|
||||
allow_local_network_access,
|
||||
recentPostsCache, False,
|
||||
systemLanguage,
|
||||
domainFull, personCache,
|
||||
|
|
16
epicyon.py
16
epicyon.py
|
@ -364,8 +364,8 @@ parser.add_argument("--publishButtonAtTop",
|
|||
const=True, default=False,
|
||||
help="Whether to show the publish button at the top of " +
|
||||
"the newswire column")
|
||||
parser.add_argument("--allowLocalNetworkAccess",
|
||||
dest='allowLocalNetworkAccess',
|
||||
parser.add_argument("--allow_local_network_access",
|
||||
dest='allow_local_network_access',
|
||||
type=str2bool, nargs='?',
|
||||
const=True, default=False,
|
||||
help="Whether to allow access to local network " +
|
||||
|
@ -3103,10 +3103,10 @@ fullWidthTimelineButtonHeader = \
|
|||
if fullWidthTimelineButtonHeader is not None:
|
||||
args.fullWidthTimelineButtonHeader = bool(fullWidthTimelineButtonHeader)
|
||||
|
||||
allowLocalNetworkAccess = \
|
||||
getConfigParam(base_dir, 'allowLocalNetworkAccess')
|
||||
if allowLocalNetworkAccess is not None:
|
||||
args.allowLocalNetworkAccess = bool(allowLocalNetworkAccess)
|
||||
allow_local_network_access = \
|
||||
getConfigParam(base_dir, 'allow_local_network_access')
|
||||
if allow_local_network_access is not None:
|
||||
args.allow_local_network_access = bool(allow_local_network_access)
|
||||
|
||||
verify_all_signatures = \
|
||||
getConfigParam(base_dir, 'verify_all_signatures')
|
||||
|
@ -3181,7 +3181,7 @@ if twitterDomain:
|
|||
args.twitterReplacementDomain = twitterDomain
|
||||
|
||||
if setTheme(base_dir, themeName, domain,
|
||||
args.allowLocalNetworkAccess, args.language):
|
||||
args.allow_local_network_access, args.language):
|
||||
print('Theme set to ' + themeName)
|
||||
|
||||
# whether new registrations are open or closed
|
||||
|
@ -3225,7 +3225,7 @@ if __name__ == "__main__":
|
|||
args.send_threads_timeout_mins,
|
||||
args.dormant_months,
|
||||
args.max_newswire_posts,
|
||||
args.allowLocalNetworkAccess,
|
||||
args.allow_local_network_access,
|
||||
args.maxFeedItemSizeKb,
|
||||
args.publishButtonAtTop,
|
||||
args.rssIconAtTop,
|
||||
|
|
70
inbox.py
70
inbox.py
|
@ -287,7 +287,7 @@ def _inboxStorePostToHtmlCache(recentPostsCache: {}, maxRecentPosts: int,
|
|||
allowDeletion: bool, boxname: str,
|
||||
showPublishedDateOnly: bool,
|
||||
peertubeInstances: [],
|
||||
allowLocalNetworkAccess: bool,
|
||||
allow_local_network_access: bool,
|
||||
themeName: str, systemLanguage: str,
|
||||
max_like_count: int,
|
||||
signingPrivateKeyPem: str,
|
||||
|
@ -314,7 +314,7 @@ def _inboxStorePostToHtmlCache(recentPostsCache: {}, maxRecentPosts: int,
|
|||
http_prefix, __version__, boxname,
|
||||
yt_replace_domain, twitterReplacementDomain,
|
||||
showPublishedDateOnly,
|
||||
peertubeInstances, allowLocalNetworkAccess,
|
||||
peertubeInstances, allow_local_network_access,
|
||||
themeName, systemLanguage, max_like_count,
|
||||
notDM, True, True, False, True, False,
|
||||
CWlists, lists_enabled)
|
||||
|
@ -1002,7 +1002,7 @@ def _receiveLike(recentPostsCache: {},
|
|||
yt_replace_domain: str,
|
||||
twitterReplacementDomain: str,
|
||||
peertubeInstances: [],
|
||||
allowLocalNetworkAccess: bool,
|
||||
allow_local_network_access: bool,
|
||||
themeName: str, systemLanguage: str,
|
||||
max_like_count: int, CWlists: {},
|
||||
lists_enabled: str) -> bool:
|
||||
|
@ -1102,7 +1102,7 @@ def _receiveLike(recentPostsCache: {},
|
|||
twitterReplacementDomain,
|
||||
showPublishedDateOnly,
|
||||
peertubeInstances,
|
||||
allowLocalNetworkAccess,
|
||||
allow_local_network_access,
|
||||
themeName, systemLanguage,
|
||||
max_like_count, notDM,
|
||||
showIndividualPostIcons,
|
||||
|
@ -1124,7 +1124,7 @@ def _receiveUndoLike(recentPostsCache: {},
|
|||
yt_replace_domain: str,
|
||||
twitterReplacementDomain: str,
|
||||
peertubeInstances: [],
|
||||
allowLocalNetworkAccess: bool,
|
||||
allow_local_network_access: bool,
|
||||
themeName: str, systemLanguage: str,
|
||||
max_like_count: int, CWlists: {},
|
||||
lists_enabled: str) -> bool:
|
||||
|
@ -1213,7 +1213,7 @@ def _receiveUndoLike(recentPostsCache: {},
|
|||
twitterReplacementDomain,
|
||||
showPublishedDateOnly,
|
||||
peertubeInstances,
|
||||
allowLocalNetworkAccess,
|
||||
allow_local_network_access,
|
||||
themeName, systemLanguage,
|
||||
max_like_count, notDM,
|
||||
showIndividualPostIcons,
|
||||
|
@ -1236,7 +1236,7 @@ def _receiveReaction(recentPostsCache: {},
|
|||
yt_replace_domain: str,
|
||||
twitterReplacementDomain: str,
|
||||
peertubeInstances: [],
|
||||
allowLocalNetworkAccess: bool,
|
||||
allow_local_network_access: bool,
|
||||
themeName: str, systemLanguage: str,
|
||||
max_like_count: int, CWlists: {},
|
||||
lists_enabled: str) -> bool:
|
||||
|
@ -1361,7 +1361,7 @@ def _receiveReaction(recentPostsCache: {},
|
|||
twitterReplacementDomain,
|
||||
showPublishedDateOnly,
|
||||
peertubeInstances,
|
||||
allowLocalNetworkAccess,
|
||||
allow_local_network_access,
|
||||
themeName, systemLanguage,
|
||||
max_like_count, notDM,
|
||||
showIndividualPostIcons,
|
||||
|
@ -1383,7 +1383,7 @@ def _receiveUndoReaction(recentPostsCache: {},
|
|||
yt_replace_domain: str,
|
||||
twitterReplacementDomain: str,
|
||||
peertubeInstances: [],
|
||||
allowLocalNetworkAccess: bool,
|
||||
allow_local_network_access: bool,
|
||||
themeName: str, systemLanguage: str,
|
||||
max_like_count: int, CWlists: {},
|
||||
lists_enabled: str) -> bool:
|
||||
|
@ -1488,7 +1488,7 @@ def _receiveUndoReaction(recentPostsCache: {},
|
|||
twitterReplacementDomain,
|
||||
showPublishedDateOnly,
|
||||
peertubeInstances,
|
||||
allowLocalNetworkAccess,
|
||||
allow_local_network_access,
|
||||
themeName, systemLanguage,
|
||||
max_like_count, notDM,
|
||||
showIndividualPostIcons,
|
||||
|
@ -1509,7 +1509,7 @@ def _receiveBookmark(recentPostsCache: {},
|
|||
yt_replace_domain: str,
|
||||
twitterReplacementDomain: str,
|
||||
peertubeInstances: [],
|
||||
allowLocalNetworkAccess: bool,
|
||||
allow_local_network_access: bool,
|
||||
themeName: str, systemLanguage: str,
|
||||
max_like_count: int, CWlists: {},
|
||||
lists_enabled: {}) -> bool:
|
||||
|
@ -1598,7 +1598,7 @@ def _receiveBookmark(recentPostsCache: {},
|
|||
twitterReplacementDomain,
|
||||
showPublishedDateOnly,
|
||||
peertubeInstances,
|
||||
allowLocalNetworkAccess,
|
||||
allow_local_network_access,
|
||||
themeName, systemLanguage,
|
||||
max_like_count, notDM,
|
||||
showIndividualPostIcons,
|
||||
|
@ -1619,7 +1619,7 @@ def _receiveUndoBookmark(recentPostsCache: {},
|
|||
yt_replace_domain: str,
|
||||
twitterReplacementDomain: str,
|
||||
peertubeInstances: [],
|
||||
allowLocalNetworkAccess: bool,
|
||||
allow_local_network_access: bool,
|
||||
themeName: str, systemLanguage: str,
|
||||
max_like_count: int, CWlists: {},
|
||||
lists_enabled: str) -> bool:
|
||||
|
@ -1709,7 +1709,7 @@ def _receiveUndoBookmark(recentPostsCache: {},
|
|||
twitterReplacementDomain,
|
||||
showPublishedDateOnly,
|
||||
peertubeInstances,
|
||||
allowLocalNetworkAccess,
|
||||
allow_local_network_access,
|
||||
themeName, systemLanguage,
|
||||
max_like_count, notDM,
|
||||
showIndividualPostIcons,
|
||||
|
@ -1802,7 +1802,7 @@ def _receiveAnnounce(recentPostsCache: {},
|
|||
debug: bool, translate: {},
|
||||
yt_replace_domain: str,
|
||||
twitterReplacementDomain: str,
|
||||
allowLocalNetworkAccess: bool,
|
||||
allow_local_network_access: bool,
|
||||
themeName: str, systemLanguage: str,
|
||||
signingPrivateKeyPem: str,
|
||||
maxRecentPosts: int,
|
||||
|
@ -1916,7 +1916,7 @@ def _receiveAnnounce(recentPostsCache: {},
|
|||
twitterReplacementDomain,
|
||||
showPublishedDateOnly,
|
||||
peertubeInstances,
|
||||
allowLocalNetworkAccess,
|
||||
allow_local_network_access,
|
||||
themeName, systemLanguage,
|
||||
max_like_count, notDM,
|
||||
showIndividualPostIcons,
|
||||
|
@ -1937,7 +1937,7 @@ def _receiveAnnounce(recentPostsCache: {},
|
|||
__version__, translate,
|
||||
yt_replace_domain,
|
||||
twitterReplacementDomain,
|
||||
allowLocalNetworkAccess,
|
||||
allow_local_network_access,
|
||||
recentPostsCache, debug,
|
||||
systemLanguage,
|
||||
domainFull, personCache,
|
||||
|
@ -2186,7 +2186,7 @@ def _estimateNumberOfEmoji(content: str) -> int:
|
|||
|
||||
def _validPostContent(base_dir: str, nickname: str, domain: str,
|
||||
messageJson: {}, maxMentions: int, maxEmoji: int,
|
||||
allowLocalNetworkAccess: bool, debug: bool,
|
||||
allow_local_network_access: bool, debug: bool,
|
||||
systemLanguage: str,
|
||||
http_prefix: str, domainFull: str,
|
||||
personCache: {}) -> bool:
|
||||
|
@ -2229,7 +2229,7 @@ def _validPostContent(base_dir: str, nickname: str, domain: str,
|
|||
return True
|
||||
|
||||
contentStr = getBaseContentFromPost(messageJson, systemLanguage)
|
||||
if dangerousMarkup(contentStr, allowLocalNetworkAccess):
|
||||
if dangerousMarkup(contentStr, allow_local_network_access):
|
||||
if messageJson['object'].get('id'):
|
||||
print('REJECT ARBITRARY HTML: ' + messageJson['object']['id'])
|
||||
print('REJECT ARBITRARY HTML: bad string in post - ' +
|
||||
|
@ -2983,7 +2983,7 @@ def _receiveQuestionVote(base_dir: str, nickname: str, domain: str,
|
|||
yt_replace_domain: str,
|
||||
twitterReplacementDomain: str,
|
||||
peertubeInstances: [],
|
||||
allowLocalNetworkAccess: bool,
|
||||
allow_local_network_access: bool,
|
||||
themeName: str, systemLanguage: str,
|
||||
max_like_count: int,
|
||||
CWlists: {}, lists_enabled: bool) -> None:
|
||||
|
@ -3028,7 +3028,7 @@ def _receiveQuestionVote(base_dir: str, nickname: str, domain: str,
|
|||
twitterReplacementDomain,
|
||||
showPublishedDateOnly,
|
||||
peertubeInstances,
|
||||
allowLocalNetworkAccess,
|
||||
allow_local_network_access,
|
||||
themeName, systemLanguage,
|
||||
max_like_count, notDM,
|
||||
showIndividualPostIcons,
|
||||
|
@ -3190,7 +3190,7 @@ def _inboxAfterInitial(recentPostsCache: {}, maxRecentPosts: int,
|
|||
yt_replace_domain: str,
|
||||
twitterReplacementDomain: str,
|
||||
showPublishedDateOnly: bool,
|
||||
allowLocalNetworkAccess: bool,
|
||||
allow_local_network_access: bool,
|
||||
peertubeInstances: [],
|
||||
lastBounceMessage: [],
|
||||
themeName: str, systemLanguage: str,
|
||||
|
@ -3226,7 +3226,7 @@ def _inboxAfterInitial(recentPostsCache: {}, maxRecentPosts: int,
|
|||
yt_replace_domain,
|
||||
twitterReplacementDomain,
|
||||
peertubeInstances,
|
||||
allowLocalNetworkAccess,
|
||||
allow_local_network_access,
|
||||
themeName, systemLanguage,
|
||||
max_like_count, CWlists, lists_enabled):
|
||||
if debug:
|
||||
|
@ -3248,7 +3248,7 @@ def _inboxAfterInitial(recentPostsCache: {}, maxRecentPosts: int,
|
|||
yt_replace_domain,
|
||||
twitterReplacementDomain,
|
||||
peertubeInstances,
|
||||
allowLocalNetworkAccess,
|
||||
allow_local_network_access,
|
||||
themeName, systemLanguage,
|
||||
max_like_count, CWlists, lists_enabled):
|
||||
if debug:
|
||||
|
@ -3271,7 +3271,7 @@ def _inboxAfterInitial(recentPostsCache: {}, maxRecentPosts: int,
|
|||
yt_replace_domain,
|
||||
twitterReplacementDomain,
|
||||
peertubeInstances,
|
||||
allowLocalNetworkAccess,
|
||||
allow_local_network_access,
|
||||
themeName, systemLanguage,
|
||||
max_like_count, CWlists, lists_enabled):
|
||||
if debug:
|
||||
|
@ -3293,7 +3293,7 @@ def _inboxAfterInitial(recentPostsCache: {}, maxRecentPosts: int,
|
|||
yt_replace_domain,
|
||||
twitterReplacementDomain,
|
||||
peertubeInstances,
|
||||
allowLocalNetworkAccess,
|
||||
allow_local_network_access,
|
||||
themeName, systemLanguage,
|
||||
max_like_count, CWlists, lists_enabled):
|
||||
if debug:
|
||||
|
@ -3315,7 +3315,7 @@ def _inboxAfterInitial(recentPostsCache: {}, maxRecentPosts: int,
|
|||
yt_replace_domain,
|
||||
twitterReplacementDomain,
|
||||
peertubeInstances,
|
||||
allowLocalNetworkAccess,
|
||||
allow_local_network_access,
|
||||
themeName, systemLanguage,
|
||||
max_like_count, CWlists, lists_enabled):
|
||||
if debug:
|
||||
|
@ -3337,7 +3337,7 @@ def _inboxAfterInitial(recentPostsCache: {}, maxRecentPosts: int,
|
|||
yt_replace_domain,
|
||||
twitterReplacementDomain,
|
||||
peertubeInstances,
|
||||
allowLocalNetworkAccess,
|
||||
allow_local_network_access,
|
||||
themeName, systemLanguage,
|
||||
max_like_count, CWlists, lists_enabled):
|
||||
if debug:
|
||||
|
@ -3359,7 +3359,7 @@ def _inboxAfterInitial(recentPostsCache: {}, maxRecentPosts: int,
|
|||
debug, translate,
|
||||
yt_replace_domain,
|
||||
twitterReplacementDomain,
|
||||
allowLocalNetworkAccess,
|
||||
allow_local_network_access,
|
||||
themeName, systemLanguage,
|
||||
signingPrivateKeyPem,
|
||||
maxRecentPosts,
|
||||
|
@ -3415,7 +3415,7 @@ def _inboxAfterInitial(recentPostsCache: {}, maxRecentPosts: int,
|
|||
domainFull = getFullDomain(domain, port)
|
||||
if _validPostContent(base_dir, nickname, domain,
|
||||
postJsonObject, maxMentions, maxEmoji,
|
||||
allowLocalNetworkAccess, debug,
|
||||
allow_local_network_access, debug,
|
||||
systemLanguage, http_prefix,
|
||||
domainFull, personCache):
|
||||
# is the sending actor valid?
|
||||
|
@ -3459,7 +3459,7 @@ def _inboxAfterInitial(recentPostsCache: {}, maxRecentPosts: int,
|
|||
yt_replace_domain,
|
||||
twitterReplacementDomain,
|
||||
peertubeInstances,
|
||||
allowLocalNetworkAccess,
|
||||
allow_local_network_access,
|
||||
themeName, systemLanguage,
|
||||
max_like_count,
|
||||
CWlists, lists_enabled)
|
||||
|
@ -3500,7 +3500,7 @@ def _inboxAfterInitial(recentPostsCache: {}, maxRecentPosts: int,
|
|||
translate,
|
||||
yt_replace_domain,
|
||||
twitterReplacementDomain,
|
||||
allowLocalNetworkAccess,
|
||||
allow_local_network_access,
|
||||
recentPostsCache, debug, systemLanguage,
|
||||
domainFull, personCache, signingPrivateKeyPem):
|
||||
# media index will be updated
|
||||
|
@ -3564,7 +3564,7 @@ def _inboxAfterInitial(recentPostsCache: {}, maxRecentPosts: int,
|
|||
boxname,
|
||||
showPublishedDateOnly,
|
||||
peertubeInstances,
|
||||
allowLocalNetworkAccess,
|
||||
allow_local_network_access,
|
||||
themeName, systemLanguage,
|
||||
max_like_count,
|
||||
signingPrivateKeyPem,
|
||||
|
@ -4075,7 +4075,7 @@ def runInboxQueue(recentPostsCache: {}, maxRecentPosts: int,
|
|||
twitterReplacementDomain: str,
|
||||
showPublishedDateOnly: bool,
|
||||
maxFollowers: int,
|
||||
allowLocalNetworkAccess: bool,
|
||||
allow_local_network_access: bool,
|
||||
peertubeInstances: [],
|
||||
verify_all_signatures: bool,
|
||||
themeName: str, systemLanguage: str,
|
||||
|
@ -4505,7 +4505,7 @@ def runInboxQueue(recentPostsCache: {}, maxRecentPosts: int,
|
|||
yt_replace_domain,
|
||||
twitterReplacementDomain,
|
||||
showPublishedDateOnly,
|
||||
allowLocalNetworkAccess,
|
||||
allow_local_network_access,
|
||||
peertubeInstances,
|
||||
lastBounceMessage,
|
||||
themeName, systemLanguage,
|
||||
|
|
|
@ -543,7 +543,7 @@ def _convertRSStoActivityPub(base_dir: str, http_prefix: str,
|
|||
federationList: [],
|
||||
sendThreads: [], postLog: [],
|
||||
maxMirroredArticles: int,
|
||||
allowLocalNetworkAccess: bool,
|
||||
allow_local_network_access: bool,
|
||||
systemLanguage: str,
|
||||
low_bandwidth: bool,
|
||||
content_license_url: str) -> None:
|
||||
|
@ -598,8 +598,8 @@ def _convertRSStoActivityPub(base_dir: str, http_prefix: str,
|
|||
|
||||
rssTitle = _removeControlCharacters(item[0])
|
||||
url = item[1]
|
||||
if dangerousMarkup(url, allowLocalNetworkAccess) or \
|
||||
dangerousMarkup(rssTitle, allowLocalNetworkAccess):
|
||||
if dangerousMarkup(url, allow_local_network_access) or \
|
||||
dangerousMarkup(rssTitle, allow_local_network_access):
|
||||
continue
|
||||
rssDescription = ''
|
||||
|
||||
|
@ -834,7 +834,7 @@ def runNewswireDaemon(base_dir: str, httpd,
|
|||
httpd.sendThreads,
|
||||
httpd.postLog,
|
||||
httpd.maxMirroredArticles,
|
||||
httpd.allowLocalNetworkAccess,
|
||||
httpd.allow_local_network_access,
|
||||
httpd.systemLanguage,
|
||||
httpd.low_bandwidth,
|
||||
httpd.content_license_url)
|
||||
|
|
10
outbox.py
10
outbox.py
|
@ -190,7 +190,7 @@ def postMessageToOutbox(session, translate: {},
|
|||
yt_replace_domain: str,
|
||||
twitterReplacementDomain: str,
|
||||
showPublishedDateOnly: bool,
|
||||
allowLocalNetworkAccess: bool,
|
||||
allow_local_network_access: bool,
|
||||
city: str, systemLanguage: str,
|
||||
shared_items_federated_domains: [],
|
||||
sharedItemFederationTokens: {},
|
||||
|
@ -225,7 +225,7 @@ def postMessageToOutbox(session, translate: {},
|
|||
if hasObjectDict(messageJson):
|
||||
contentStr = getBaseContentFromPost(messageJson, systemLanguage)
|
||||
if contentStr:
|
||||
if dangerousMarkup(contentStr, allowLocalNetworkAccess):
|
||||
if dangerousMarkup(contentStr, allow_local_network_access):
|
||||
print('POST to outbox contains dangerous markup: ' +
|
||||
str(messageJson))
|
||||
return False
|
||||
|
@ -273,7 +273,7 @@ def postMessageToOutbox(session, translate: {},
|
|||
return False
|
||||
|
||||
# sent by an actor on a local network address?
|
||||
if not allowLocalNetworkAccess:
|
||||
if not allow_local_network_access:
|
||||
localNetworkPatternList = getLocalNetworkAddresses()
|
||||
for localNetworkPattern in localNetworkPatternList:
|
||||
if localNetworkPattern in messageJson['actor']:
|
||||
|
@ -425,7 +425,7 @@ def postMessageToOutbox(session, translate: {},
|
|||
translate,
|
||||
yt_replace_domain,
|
||||
twitterReplacementDomain,
|
||||
allowLocalNetworkAccess,
|
||||
allow_local_network_access,
|
||||
recentPostsCache, debug, systemLanguage,
|
||||
domainFull, personCache,
|
||||
signingPrivateKeyPem):
|
||||
|
@ -468,7 +468,7 @@ def postMessageToOutbox(session, translate: {},
|
|||
twitterReplacementDomain,
|
||||
showPublishedDateOnly,
|
||||
peertubeInstances,
|
||||
allowLocalNetworkAccess,
|
||||
allow_local_network_access,
|
||||
theme, systemLanguage,
|
||||
max_like_count,
|
||||
boxNameIndex != 'dm',
|
||||
|
|
8
posts.py
8
posts.py
|
@ -3455,7 +3455,7 @@ def isImageMedia(session, base_dir: str, http_prefix: str,
|
|||
postJsonObject: {}, translate: {},
|
||||
yt_replace_domain: str,
|
||||
twitterReplacementDomain: str,
|
||||
allowLocalNetworkAccess: bool,
|
||||
allow_local_network_access: bool,
|
||||
recentPostsCache: {}, debug: bool,
|
||||
systemLanguage: str,
|
||||
domainFull: str, personCache: {},
|
||||
|
@ -3470,7 +3470,7 @@ def isImageMedia(session, base_dir: str, http_prefix: str,
|
|||
__version__, translate,
|
||||
yt_replace_domain,
|
||||
twitterReplacementDomain,
|
||||
allowLocalNetworkAccess,
|
||||
allow_local_network_access,
|
||||
recentPostsCache, debug,
|
||||
systemLanguage,
|
||||
domainFull, personCache,
|
||||
|
@ -4506,7 +4506,7 @@ def downloadAnnounce(session, base_dir: str, http_prefix: str,
|
|||
translate: {},
|
||||
yt_replace_domain: str,
|
||||
twitterReplacementDomain: str,
|
||||
allowLocalNetworkAccess: bool,
|
||||
allow_local_network_access: bool,
|
||||
recentPostsCache: {}, debug: bool,
|
||||
systemLanguage: str,
|
||||
domainFull: str, personCache: {},
|
||||
|
@ -4660,7 +4660,7 @@ def downloadAnnounce(session, base_dir: str, http_prefix: str,
|
|||
return None
|
||||
# Check the content of the announce
|
||||
contentStr = announcedJson['content']
|
||||
if dangerousMarkup(contentStr, allowLocalNetworkAccess):
|
||||
if dangerousMarkup(contentStr, allow_local_network_access):
|
||||
_rejectAnnounce(announceFilename,
|
||||
base_dir, nickname, domain, postId,
|
||||
recentPostsCache)
|
||||
|
|
|
@ -117,7 +117,7 @@ def _updatePostSchedule(base_dir: str, handle: str, httpd,
|
|||
httpd.yt_replace_domain,
|
||||
httpd.twitterReplacementDomain,
|
||||
httpd.showPublishedDateOnly,
|
||||
httpd.allowLocalNetworkAccess,
|
||||
httpd.allow_local_network_access,
|
||||
httpd.city, httpd.systemLanguage,
|
||||
httpd.shared_items_federated_domains,
|
||||
httpd.sharedItemFederationTokens,
|
||||
|
|
46
tests.py
46
tests.py
|
@ -779,7 +779,7 @@ def createServerAlice(path: str, domain: str, port: int,
|
|||
maxEmoji = 10
|
||||
onionDomain = None
|
||||
i2pDomain = None
|
||||
allowLocalNetworkAccess = True
|
||||
allow_local_network_access = True
|
||||
max_newswire_posts = 20
|
||||
dormant_months = 3
|
||||
send_threads_timeout_mins = 30
|
||||
|
@ -808,7 +808,7 @@ def createServerAlice(path: str, domain: str, port: int,
|
|||
verify_all_signatures,
|
||||
send_threads_timeout_mins,
|
||||
dormant_months, max_newswire_posts,
|
||||
allowLocalNetworkAccess,
|
||||
allow_local_network_access,
|
||||
2048, False, True, False, False, True, maxFollowers,
|
||||
0, 100, 1024, 5, False,
|
||||
0, False, 1, False, False, False,
|
||||
|
@ -921,7 +921,7 @@ def createServerBob(path: str, domain: str, port: int,
|
|||
maxEmoji = 10
|
||||
onionDomain = None
|
||||
i2pDomain = None
|
||||
allowLocalNetworkAccess = True
|
||||
allow_local_network_access = True
|
||||
max_newswire_posts = 20
|
||||
dormant_months = 3
|
||||
send_threads_timeout_mins = 30
|
||||
|
@ -950,7 +950,7 @@ def createServerBob(path: str, domain: str, port: int,
|
|||
verify_all_signatures,
|
||||
send_threads_timeout_mins,
|
||||
dormant_months, max_newswire_posts,
|
||||
allowLocalNetworkAccess,
|
||||
allow_local_network_access,
|
||||
2048, False, True, False, False, True, maxFollowers,
|
||||
0, 100, 1024, 5, False, 0,
|
||||
False, 1, False, False, False,
|
||||
|
@ -990,7 +990,7 @@ def createServerEve(path: str, domain: str, port: int, federationList: [],
|
|||
maxEmoji = 10
|
||||
onionDomain = None
|
||||
i2pDomain = None
|
||||
allowLocalNetworkAccess = True
|
||||
allow_local_network_access = True
|
||||
max_newswire_posts = 20
|
||||
dormant_months = 3
|
||||
send_threads_timeout_mins = 30
|
||||
|
@ -1020,7 +1020,7 @@ def createServerEve(path: str, domain: str, port: int, federationList: [],
|
|||
verify_all_signatures,
|
||||
send_threads_timeout_mins,
|
||||
dormant_months, max_newswire_posts,
|
||||
allowLocalNetworkAccess,
|
||||
allow_local_network_access,
|
||||
2048, False, True, False, False, True, maxFollowers,
|
||||
0, 100, 1024, 5, False, 0,
|
||||
False, 1, False, False, False,
|
||||
|
@ -1062,7 +1062,7 @@ def createServerGroup(path: str, domain: str, port: int,
|
|||
maxEmoji = 10
|
||||
onionDomain = None
|
||||
i2pDomain = None
|
||||
allowLocalNetworkAccess = True
|
||||
allow_local_network_access = True
|
||||
max_newswire_posts = 20
|
||||
dormant_months = 3
|
||||
send_threads_timeout_mins = 30
|
||||
|
@ -1092,7 +1092,7 @@ def createServerGroup(path: str, domain: str, port: int,
|
|||
verify_all_signatures,
|
||||
send_threads_timeout_mins,
|
||||
dormant_months, max_newswire_posts,
|
||||
allowLocalNetworkAccess,
|
||||
allow_local_network_access,
|
||||
2048, False, True, False, False, True, maxFollowers,
|
||||
0, 100, 1024, 5, False,
|
||||
0, False, 1, False, False, False,
|
||||
|
@ -3712,64 +3712,64 @@ def _testDangerousSVG(base_dir: str) -> None:
|
|||
|
||||
def _testDangerousMarkup():
|
||||
print('testDangerousMarkup')
|
||||
allowLocalNetworkAccess = False
|
||||
allow_local_network_access = False
|
||||
content = '<p>This is a valid message</p>'
|
||||
assert(not dangerousMarkup(content, allowLocalNetworkAccess))
|
||||
assert(not dangerousMarkup(content, allow_local_network_access))
|
||||
|
||||
content = 'This is a valid message without markup'
|
||||
assert(not dangerousMarkup(content, allowLocalNetworkAccess))
|
||||
assert(not dangerousMarkup(content, allow_local_network_access))
|
||||
|
||||
content = '<p>This is a valid-looking message. But wait... ' + \
|
||||
'<script>document.getElementById("concentrated")' + \
|
||||
'.innerHTML = "evil";</script></p>'
|
||||
assert(dangerousMarkup(content, allowLocalNetworkAccess))
|
||||
assert(dangerousMarkup(content, allow_local_network_access))
|
||||
|
||||
content = '<p>This is a valid-looking message. But wait... ' + \
|
||||
'<script>document.getElementById("concentrated")' + \
|
||||
'.innerHTML = "evil";</script></p>'
|
||||
assert(dangerousMarkup(content, allowLocalNetworkAccess))
|
||||
assert(dangerousMarkup(content, allow_local_network_access))
|
||||
|
||||
content = '<p>This html contains more than you expected... ' + \
|
||||
'<script language="javascript">document.getElementById("abc")' + \
|
||||
'.innerHTML = "def";</script></p>'
|
||||
assert(dangerousMarkup(content, allowLocalNetworkAccess))
|
||||
assert(dangerousMarkup(content, allow_local_network_access))
|
||||
|
||||
content = '<p>This is a valid-looking message. But wait... ' + \
|
||||
'<script src="https://evilsite/payload.js" /></p>'
|
||||
assert(dangerousMarkup(content, allowLocalNetworkAccess))
|
||||
assert(dangerousMarkup(content, allow_local_network_access))
|
||||
|
||||
content = '<p>This message embeds an evil frame.' + \
|
||||
'<iframe src="somesite"></iframe></p>'
|
||||
assert(dangerousMarkup(content, allowLocalNetworkAccess))
|
||||
assert(dangerousMarkup(content, allow_local_network_access))
|
||||
|
||||
content = '<p>This message tries to obfuscate an evil frame.' + \
|
||||
'< iframe src = "somesite"></ iframe ></p>'
|
||||
assert(dangerousMarkup(content, allowLocalNetworkAccess))
|
||||
assert(dangerousMarkup(content, allow_local_network_access))
|
||||
|
||||
content = '<p>This message is not necessarily evil, but annoying.' + \
|
||||
'<hr><br><br><br><br><br><br><br><hr><hr></p>'
|
||||
assert(dangerousMarkup(content, allowLocalNetworkAccess))
|
||||
assert(dangerousMarkup(content, allow_local_network_access))
|
||||
|
||||
content = '<p>This message contans a ' + \
|
||||
'<a href="https://validsite/index.html">valid link.</a></p>'
|
||||
assert(not dangerousMarkup(content, allowLocalNetworkAccess))
|
||||
assert(not dangerousMarkup(content, allow_local_network_access))
|
||||
|
||||
content = '<p>This message contans a ' + \
|
||||
'<a href="https://validsite/iframe.html">' + \
|
||||
'valid link having invalid but harmless name.</a></p>'
|
||||
assert(not dangerousMarkup(content, allowLocalNetworkAccess))
|
||||
assert(not dangerousMarkup(content, allow_local_network_access))
|
||||
|
||||
content = '<p>This message which <a href="127.0.0.1:8736">' + \
|
||||
'tries to access the local network</a></p>'
|
||||
assert(dangerousMarkup(content, allowLocalNetworkAccess))
|
||||
assert(dangerousMarkup(content, allow_local_network_access))
|
||||
|
||||
content = '<p>This message which <a href="http://192.168.5.10:7235">' + \
|
||||
'tries to access the local network</a></p>'
|
||||
assert(dangerousMarkup(content, allowLocalNetworkAccess))
|
||||
assert(dangerousMarkup(content, allow_local_network_access))
|
||||
|
||||
content = '<p>127.0.0.1 This message which does not access ' + \
|
||||
'the local network</a></p>'
|
||||
assert(not dangerousMarkup(content, allowLocalNetworkAccess))
|
||||
assert(not dangerousMarkup(content, allow_local_network_access))
|
||||
|
||||
|
||||
def _runHtmlReplaceQuoteMarks():
|
||||
|
|
28
theme.py
28
theme.py
|
@ -319,7 +319,7 @@ def setCSSparam(css: str, param: str, value: str) -> str:
|
|||
|
||||
def _setThemeFromDict(base_dir: str, name: str,
|
||||
themeParams: {}, bgParams: {},
|
||||
allowLocalNetworkAccess: bool) -> None:
|
||||
allow_local_network_access: bool) -> None:
|
||||
"""Uses a dictionary to set a theme
|
||||
"""
|
||||
if name:
|
||||
|
@ -334,7 +334,7 @@ def _setThemeFromDict(base_dir: str, name: str,
|
|||
|
||||
# Ensure that any custom CSS is mostly harmless.
|
||||
# If not then just use the defaults
|
||||
if dangerousCSS(templateFilename, allowLocalNetworkAccess) or \
|
||||
if dangerousCSS(templateFilename, allow_local_network_access) or \
|
||||
not os.path.isfile(templateFilename):
|
||||
# use default css
|
||||
templateFilename = base_dir + '/epicyon-' + filename
|
||||
|
@ -494,16 +494,16 @@ def _setCustomFont(base_dir: str):
|
|||
|
||||
def setThemeFromDesigner(base_dir: str, themeName: str, domain: str,
|
||||
themeParams: {},
|
||||
allowLocalNetworkAccess: bool,
|
||||
allow_local_network_access: bool,
|
||||
systemLanguage: str):
|
||||
customThemeFilename = base_dir + '/accounts/theme.json'
|
||||
saveJson(themeParams, customThemeFilename)
|
||||
setTheme(base_dir, themeName, domain,
|
||||
allowLocalNetworkAccess, systemLanguage)
|
||||
allow_local_network_access, systemLanguage)
|
||||
|
||||
|
||||
def resetThemeDesignerSettings(base_dir: str, themeName: str, domain: str,
|
||||
allowLocalNetworkAccess: bool,
|
||||
allow_local_network_access: bool,
|
||||
systemLanguage: str) -> None:
|
||||
"""Resets the theme designer settings
|
||||
"""
|
||||
|
@ -517,7 +517,7 @@ def resetThemeDesignerSettings(base_dir: str, themeName: str, domain: str,
|
|||
|
||||
def _readVariablesFile(base_dir: str, themeName: str,
|
||||
variablesFile: str,
|
||||
allowLocalNetworkAccess: bool) -> None:
|
||||
allow_local_network_access: bool) -> None:
|
||||
"""Reads variables from a file in the theme directory
|
||||
"""
|
||||
themeParams = loadJson(variablesFile, 0)
|
||||
|
@ -539,10 +539,10 @@ def _readVariablesFile(base_dir: str, themeName: str,
|
|||
"search": "jpg"
|
||||
}
|
||||
_setThemeFromDict(base_dir, themeName, themeParams, bgParams,
|
||||
allowLocalNetworkAccess)
|
||||
allow_local_network_access)
|
||||
|
||||
|
||||
def _setThemeDefault(base_dir: str, allowLocalNetworkAccess: bool):
|
||||
def _setThemeDefault(base_dir: str, allow_local_network_access: bool):
|
||||
name = 'default'
|
||||
_removeTheme(base_dir)
|
||||
_setThemeInConfig(base_dir, name)
|
||||
|
@ -563,7 +563,7 @@ def _setThemeDefault(base_dir: str, allowLocalNetworkAccess: bool):
|
|||
"search-banner-height-mobile": "15vh"
|
||||
}
|
||||
_setThemeFromDict(base_dir, name, themeParams, bgParams,
|
||||
allowLocalNetworkAccess)
|
||||
allow_local_network_access)
|
||||
|
||||
|
||||
def _setThemeFonts(base_dir: str, themeName: str) -> None:
|
||||
|
@ -815,7 +815,7 @@ def _setClearCacheFlag(base_dir: str) -> None:
|
|||
|
||||
|
||||
def setTheme(base_dir: str, name: str, domain: str,
|
||||
allowLocalNetworkAccess: bool, systemLanguage: str) -> bool:
|
||||
allow_local_network_access: bool, systemLanguage: str) -> bool:
|
||||
"""Sets the theme with the given name as the current theme
|
||||
"""
|
||||
result = False
|
||||
|
@ -825,7 +825,7 @@ def setTheme(base_dir: str, name: str, domain: str,
|
|||
# if the theme has changed then remove any custom settings
|
||||
if prevThemeName != name:
|
||||
resetThemeDesignerSettings(base_dir, name, domain,
|
||||
allowLocalNetworkAccess,
|
||||
allow_local_network_access,
|
||||
systemLanguage)
|
||||
|
||||
_removeTheme(base_dir)
|
||||
|
@ -836,7 +836,7 @@ def setTheme(base_dir: str, name: str, domain: str,
|
|||
if name == themeNameLower:
|
||||
try:
|
||||
globals()['setTheme' + themeName](base_dir,
|
||||
allowLocalNetworkAccess)
|
||||
allow_local_network_access)
|
||||
except BaseException:
|
||||
print('EX: setTheme unable to set theme ' + themeName)
|
||||
pass
|
||||
|
@ -851,13 +851,13 @@ def setTheme(base_dir: str, name: str, domain: str,
|
|||
|
||||
if not result:
|
||||
# default
|
||||
_setThemeDefault(base_dir, allowLocalNetworkAccess)
|
||||
_setThemeDefault(base_dir, allow_local_network_access)
|
||||
result = True
|
||||
|
||||
variablesFile = base_dir + '/theme/' + name + '/theme.json'
|
||||
if os.path.isfile(variablesFile):
|
||||
_readVariablesFile(base_dir, name, variablesFile,
|
||||
allowLocalNetworkAccess)
|
||||
allow_local_network_access)
|
||||
|
||||
_setCustomFont(base_dir)
|
||||
|
||||
|
|
12
utils.py
12
utils.py
|
@ -842,7 +842,7 @@ def isLocalNetworkAddress(ipAddress: str) -> bool:
|
|||
return False
|
||||
|
||||
|
||||
def _isDangerousString(content: str, allowLocalNetworkAccess: bool,
|
||||
def _isDangerousString(content: str, allow_local_network_access: bool,
|
||||
separators: [], invalidStrings: []) -> bool:
|
||||
"""Returns true if the given string is dangerous
|
||||
"""
|
||||
|
@ -855,7 +855,7 @@ def _isDangerousString(content: str, allowLocalNetworkAccess: bool,
|
|||
continue
|
||||
contentSections = content.split(startChar)
|
||||
invalidPartials = ()
|
||||
if not allowLocalNetworkAccess:
|
||||
if not allow_local_network_access:
|
||||
invalidPartials = getLocalNetworkAddresses()
|
||||
for markup in contentSections:
|
||||
if endChar not in markup:
|
||||
|
@ -875,7 +875,7 @@ def _isDangerousString(content: str, allowLocalNetworkAccess: bool,
|
|||
return False
|
||||
|
||||
|
||||
def dangerousMarkup(content: str, allowLocalNetworkAccess: bool) -> bool:
|
||||
def dangerousMarkup(content: str, allow_local_network_access: bool) -> bool:
|
||||
"""Returns true if the given content contains dangerous html markup
|
||||
"""
|
||||
separators = [['<', '>'], ['<', '>']]
|
||||
|
@ -885,18 +885,18 @@ def dangerousMarkup(content: str, allowLocalNetworkAccess: bool) -> bool:
|
|||
'frame', 'iframe', 'html', 'body',
|
||||
'hr', 'allow-popups', 'allow-scripts'
|
||||
]
|
||||
return _isDangerousString(content, allowLocalNetworkAccess,
|
||||
return _isDangerousString(content, allow_local_network_access,
|
||||
separators, invalidStrings)
|
||||
|
||||
|
||||
def dangerousSVG(content: str, allowLocalNetworkAccess: bool) -> bool:
|
||||
def dangerousSVG(content: str, allow_local_network_access: bool) -> bool:
|
||||
"""Returns true if the given svg file content contains dangerous scripts
|
||||
"""
|
||||
separators = [['<', '>'], ['<', '>']]
|
||||
invalidStrings = [
|
||||
'script'
|
||||
]
|
||||
return _isDangerousString(content, allowLocalNetworkAccess,
|
||||
return _isDangerousString(content, allow_local_network_access,
|
||||
separators, invalidStrings)
|
||||
|
||||
|
||||
|
|
|
@ -34,7 +34,7 @@ def htmlConfirmDelete(cssCache: {},
|
|||
twitterReplacementDomain: str,
|
||||
showPublishedDateOnly: bool,
|
||||
peertubeInstances: [],
|
||||
allowLocalNetworkAccess: bool,
|
||||
allow_local_network_access: bool,
|
||||
themeName: str, systemLanguage: str,
|
||||
max_like_count: int, signingPrivateKeyPem: str,
|
||||
CWlists: {}, lists_enabled: str) -> str:
|
||||
|
@ -75,7 +75,7 @@ def htmlConfirmDelete(cssCache: {},
|
|||
yt_replace_domain,
|
||||
twitterReplacementDomain,
|
||||
showPublishedDateOnly,
|
||||
peertubeInstances, allowLocalNetworkAccess,
|
||||
peertubeInstances, allow_local_network_access,
|
||||
themeName, systemLanguage, max_like_count,
|
||||
False, False, False, False, False, False,
|
||||
CWlists, lists_enabled)
|
||||
|
|
|
@ -206,7 +206,7 @@ def htmlNewPost(cssCache: {}, mediaInstance: bool, translate: {},
|
|||
twitterReplacementDomain: str,
|
||||
showPublishedDateOnly: bool,
|
||||
peertubeInstances: [],
|
||||
allowLocalNetworkAccess: bool,
|
||||
allow_local_network_access: bool,
|
||||
systemLanguage: str,
|
||||
max_like_count: int, signingPrivateKeyPem: str,
|
||||
CWlists: {}, lists_enabled: str,
|
||||
|
@ -275,7 +275,7 @@ def htmlNewPost(cssCache: {}, mediaInstance: bool, translate: {},
|
|||
twitterReplacementDomain,
|
||||
showPublishedDateOnly,
|
||||
peertubeInstances,
|
||||
allowLocalNetworkAccess,
|
||||
allow_local_network_access,
|
||||
theme, systemLanguage,
|
||||
max_like_count,
|
||||
False, False, False,
|
||||
|
|
|
@ -32,7 +32,7 @@ def _htmlFrontScreenPosts(recentPostsCache: {}, maxRecentPosts: int,
|
|||
twitterReplacementDomain: str,
|
||||
showPublishedDateOnly: bool,
|
||||
peertubeInstances: [],
|
||||
allowLocalNetworkAccess: bool,
|
||||
allow_local_network_access: bool,
|
||||
themeName: str, systemLanguage: str,
|
||||
max_like_count: int,
|
||||
signingPrivateKeyPem: str, CWlists: {},
|
||||
|
@ -78,7 +78,7 @@ def _htmlFrontScreenPosts(recentPostsCache: {}, maxRecentPosts: int,
|
|||
twitterReplacementDomain,
|
||||
showPublishedDateOnly,
|
||||
peertubeInstances,
|
||||
allowLocalNetworkAccess,
|
||||
allow_local_network_access,
|
||||
themeName, systemLanguage,
|
||||
max_like_count,
|
||||
False, False, False,
|
||||
|
@ -107,7 +107,7 @@ def htmlFrontScreen(signingPrivateKeyPem: str,
|
|||
showPublishedDateOnly: bool,
|
||||
newswire: {}, theme: str,
|
||||
peertubeInstances: [],
|
||||
allowLocalNetworkAccess: bool,
|
||||
allow_local_network_access: bool,
|
||||
accessKeys: {},
|
||||
systemLanguage: str, max_like_count: int,
|
||||
shared_items_federated_domains: [],
|
||||
|
@ -183,7 +183,7 @@ def htmlFrontScreen(signingPrivateKeyPem: str,
|
|||
twitterReplacementDomain,
|
||||
showPublishedDateOnly,
|
||||
peertubeInstances,
|
||||
allowLocalNetworkAccess,
|
||||
allow_local_network_access,
|
||||
theme, systemLanguage,
|
||||
max_like_count,
|
||||
signingPrivateKeyPem,
|
||||
|
|
|
@ -48,7 +48,7 @@ def htmlModeration(cssCache: {}, defaultTimeline: str,
|
|||
publishButtonAtTop: bool,
|
||||
authorized: bool, moderationActionStr: str,
|
||||
theme: str, peertubeInstances: [],
|
||||
allowLocalNetworkAccess: bool,
|
||||
allow_local_network_access: bool,
|
||||
textModeBanner: str,
|
||||
accessKeys: {}, systemLanguage: str,
|
||||
max_like_count: int,
|
||||
|
@ -74,7 +74,7 @@ def htmlModeration(cssCache: {}, defaultTimeline: str,
|
|||
showPublishAsIcon, fullWidthTimelineButtonHeader,
|
||||
iconsAsButtons, rssIconAtTop, publishButtonAtTop,
|
||||
authorized, moderationActionStr, theme,
|
||||
peertubeInstances, allowLocalNetworkAccess,
|
||||
peertubeInstances, allow_local_network_access,
|
||||
textModeBanner, accessKeys, systemLanguage,
|
||||
max_like_count, shared_items_federated_domains,
|
||||
signingPrivateKeyPem, CWlists, lists_enabled)
|
||||
|
|
|
@ -1335,7 +1335,7 @@ def individualPostAsHtml(signingPrivateKeyPem: str,
|
|||
twitterReplacementDomain: str,
|
||||
showPublishedDateOnly: bool,
|
||||
peertubeInstances: [],
|
||||
allowLocalNetworkAccess: bool,
|
||||
allow_local_network_access: bool,
|
||||
themeName: str, systemLanguage: str,
|
||||
max_like_count: int,
|
||||
showRepeats: bool,
|
||||
|
@ -1501,7 +1501,7 @@ def individualPostAsHtml(signingPrivateKeyPem: str,
|
|||
projectVersion, translate,
|
||||
yt_replace_domain,
|
||||
twitterReplacementDomain,
|
||||
allowLocalNetworkAccess,
|
||||
allow_local_network_access,
|
||||
recentPostsCache, False,
|
||||
systemLanguage,
|
||||
domainFull, personCache,
|
||||
|
@ -2003,7 +2003,7 @@ def htmlIndividualPost(cssCache: {},
|
|||
twitterReplacementDomain: str,
|
||||
showPublishedDateOnly: bool,
|
||||
peertubeInstances: [],
|
||||
allowLocalNetworkAccess: bool,
|
||||
allow_local_network_access: bool,
|
||||
themeName: str, systemLanguage: str,
|
||||
max_like_count: int, signingPrivateKeyPem: str,
|
||||
CWlists: {}, lists_enabled: str) -> str:
|
||||
|
@ -2068,7 +2068,7 @@ def htmlIndividualPost(cssCache: {},
|
|||
twitterReplacementDomain,
|
||||
showPublishedDateOnly,
|
||||
peertubeInstances,
|
||||
allowLocalNetworkAccess, themeName,
|
||||
allow_local_network_access, themeName,
|
||||
systemLanguage, max_like_count,
|
||||
False, authorized, False, False, False, False,
|
||||
CWlists, lists_enabled)
|
||||
|
@ -2099,7 +2099,7 @@ def htmlIndividualPost(cssCache: {},
|
|||
twitterReplacementDomain,
|
||||
showPublishedDateOnly,
|
||||
peertubeInstances,
|
||||
allowLocalNetworkAccess,
|
||||
allow_local_network_access,
|
||||
themeName, systemLanguage,
|
||||
max_like_count,
|
||||
False, authorized,
|
||||
|
@ -2134,7 +2134,7 @@ def htmlIndividualPost(cssCache: {},
|
|||
twitterReplacementDomain,
|
||||
showPublishedDateOnly,
|
||||
peertubeInstances,
|
||||
allowLocalNetworkAccess,
|
||||
allow_local_network_access,
|
||||
themeName, systemLanguage,
|
||||
max_like_count,
|
||||
False, authorized,
|
||||
|
@ -2162,7 +2162,7 @@ def htmlPostReplies(cssCache: {},
|
|||
twitterReplacementDomain: str,
|
||||
showPublishedDateOnly: bool,
|
||||
peertubeInstances: [],
|
||||
allowLocalNetworkAccess: bool,
|
||||
allow_local_network_access: bool,
|
||||
themeName: str, systemLanguage: str,
|
||||
max_like_count: int,
|
||||
signingPrivateKeyPem: str, CWlists: {},
|
||||
|
@ -2186,7 +2186,7 @@ def htmlPostReplies(cssCache: {},
|
|||
twitterReplacementDomain,
|
||||
showPublishedDateOnly,
|
||||
peertubeInstances,
|
||||
allowLocalNetworkAccess,
|
||||
allow_local_network_access,
|
||||
themeName, systemLanguage,
|
||||
max_like_count,
|
||||
False, False, False, False, False, False,
|
||||
|
@ -2215,7 +2215,7 @@ def htmlEmojiReactionPicker(cssCache: {},
|
|||
twitterReplacementDomain: str,
|
||||
showPublishedDateOnly: bool,
|
||||
peertubeInstances: [],
|
||||
allowLocalNetworkAccess: bool,
|
||||
allow_local_network_access: bool,
|
||||
themeName: str, systemLanguage: str,
|
||||
max_like_count: int, signingPrivateKeyPem: str,
|
||||
CWlists: {}, lists_enabled: str,
|
||||
|
@ -2238,7 +2238,7 @@ def htmlEmojiReactionPicker(cssCache: {},
|
|||
twitterReplacementDomain,
|
||||
showPublishedDateOnly,
|
||||
peertubeInstances,
|
||||
allowLocalNetworkAccess,
|
||||
allow_local_network_access,
|
||||
themeName, systemLanguage,
|
||||
max_like_count,
|
||||
False, False, False, False, False, False,
|
||||
|
|
|
@ -134,7 +134,7 @@ def htmlProfileAfterSearch(cssCache: {},
|
|||
showPublishedDateOnly: bool,
|
||||
defaultTimeline: str,
|
||||
peertubeInstances: [],
|
||||
allowLocalNetworkAccess: bool,
|
||||
allow_local_network_access: bool,
|
||||
themeName: str,
|
||||
accessKeys: {},
|
||||
systemLanguage: str,
|
||||
|
@ -344,7 +344,7 @@ def htmlProfileAfterSearch(cssCache: {},
|
|||
twitterReplacementDomain,
|
||||
showPublishedDateOnly,
|
||||
peertubeInstances,
|
||||
allowLocalNetworkAccess,
|
||||
allow_local_network_access,
|
||||
themeName, systemLanguage, max_like_count,
|
||||
False, False, False, False, False, False,
|
||||
CWlists, lists_enabled)
|
||||
|
@ -552,7 +552,7 @@ def htmlProfile(signingPrivateKeyPem: str,
|
|||
showPublishedDateOnly: bool,
|
||||
newswire: {}, theme: str, dormant_months: int,
|
||||
peertubeInstances: [],
|
||||
allowLocalNetworkAccess: bool,
|
||||
allow_local_network_access: bool,
|
||||
textModeBanner: str,
|
||||
debug: bool, accessKeys: {}, city: str,
|
||||
systemLanguage: str, max_like_count: int,
|
||||
|
@ -580,7 +580,7 @@ def htmlProfile(signingPrivateKeyPem: str,
|
|||
twitterReplacementDomain,
|
||||
showPublishedDateOnly,
|
||||
newswire, theme, extraJson,
|
||||
allowLocalNetworkAccess, accessKeys,
|
||||
allow_local_network_access, accessKeys,
|
||||
systemLanguage, max_like_count,
|
||||
shared_items_federated_domains, None,
|
||||
pageNumber, maxItemsPerPage, CWlists,
|
||||
|
@ -962,7 +962,7 @@ def htmlProfile(signingPrivateKeyPem: str,
|
|||
twitterReplacementDomain,
|
||||
showPublishedDateOnly,
|
||||
peertubeInstances,
|
||||
allowLocalNetworkAccess,
|
||||
allow_local_network_access,
|
||||
theme, systemLanguage,
|
||||
max_like_count,
|
||||
signingPrivateKeyPem,
|
||||
|
@ -1030,7 +1030,7 @@ def _htmlProfilePosts(recentPostsCache: {}, maxRecentPosts: int,
|
|||
twitterReplacementDomain: str,
|
||||
showPublishedDateOnly: bool,
|
||||
peertubeInstances: [],
|
||||
allowLocalNetworkAccess: bool,
|
||||
allow_local_network_access: bool,
|
||||
themeName: str, systemLanguage: str,
|
||||
max_like_count: int,
|
||||
signingPrivateKeyPem: str,
|
||||
|
@ -1075,7 +1075,7 @@ def _htmlProfilePosts(recentPostsCache: {}, maxRecentPosts: int,
|
|||
twitterReplacementDomain,
|
||||
showPublishedDateOnly,
|
||||
peertubeInstances,
|
||||
allowLocalNetworkAccess,
|
||||
allow_local_network_access,
|
||||
themeName, systemLanguage,
|
||||
max_like_count,
|
||||
False, False, False,
|
||||
|
|
|
@ -601,7 +601,7 @@ def htmlHistorySearch(cssCache: {}, translate: {}, base_dir: str,
|
|||
twitterReplacementDomain: str,
|
||||
showPublishedDateOnly: bool,
|
||||
peertubeInstances: [],
|
||||
allowLocalNetworkAccess: bool,
|
||||
allow_local_network_access: bool,
|
||||
themeName: str, boxName: str,
|
||||
systemLanguage: str,
|
||||
max_like_count: int,
|
||||
|
@ -688,7 +688,7 @@ def htmlHistorySearch(cssCache: {}, translate: {}, base_dir: str,
|
|||
twitterReplacementDomain,
|
||||
showPublishedDateOnly,
|
||||
peertubeInstances,
|
||||
allowLocalNetworkAccess,
|
||||
allow_local_network_access,
|
||||
themeName, systemLanguage, max_like_count,
|
||||
showIndividualPostIcons,
|
||||
showIndividualPostIcons,
|
||||
|
@ -714,7 +714,7 @@ def htmlHashtagSearch(cssCache: {},
|
|||
twitterReplacementDomain: str,
|
||||
showPublishedDateOnly: bool,
|
||||
peertubeInstances: [],
|
||||
allowLocalNetworkAccess: bool,
|
||||
allow_local_network_access: bool,
|
||||
themeName: str, systemLanguage: str,
|
||||
max_like_count: int,
|
||||
signingPrivateKeyPem: str,
|
||||
|
@ -871,7 +871,7 @@ def htmlHashtagSearch(cssCache: {},
|
|||
twitterReplacementDomain,
|
||||
showPublishedDateOnly,
|
||||
peertubeInstances,
|
||||
allowLocalNetworkAccess,
|
||||
allow_local_network_access,
|
||||
themeName, systemLanguage, max_like_count,
|
||||
showRepeats, showIcons,
|
||||
manuallyApprovesFollowers,
|
||||
|
|
|
@ -442,7 +442,7 @@ def htmlTimeline(cssCache: {}, defaultTimeline: str,
|
|||
moderationActionStr: str,
|
||||
theme: str,
|
||||
peertubeInstances: [],
|
||||
allowLocalNetworkAccess: bool,
|
||||
allow_local_network_access: bool,
|
||||
textModeBanner: str,
|
||||
accessKeys: {}, systemLanguage: str,
|
||||
max_like_count: int,
|
||||
|
@ -909,7 +909,7 @@ def htmlTimeline(cssCache: {}, defaultTimeline: str,
|
|||
twitterReplacementDomain,
|
||||
showPublishedDateOnly,
|
||||
peertubeInstances,
|
||||
allowLocalNetworkAccess,
|
||||
allow_local_network_access,
|
||||
theme, systemLanguage,
|
||||
max_like_count,
|
||||
boxName != 'dm',
|
||||
|
@ -1136,7 +1136,7 @@ def htmlShares(cssCache: {}, defaultTimeline: str,
|
|||
publishButtonAtTop: bool,
|
||||
authorized: bool, theme: str,
|
||||
peertubeInstances: [],
|
||||
allowLocalNetworkAccess: bool,
|
||||
allow_local_network_access: bool,
|
||||
textModeBanner: str,
|
||||
accessKeys: {}, systemLanguage: str,
|
||||
max_like_count: int,
|
||||
|
@ -1166,7 +1166,7 @@ def htmlShares(cssCache: {}, defaultTimeline: str,
|
|||
fullWidthTimelineButtonHeader,
|
||||
iconsAsButtons, rssIconAtTop, publishButtonAtTop,
|
||||
authorized, None, theme, peertubeInstances,
|
||||
allowLocalNetworkAccess, textModeBanner,
|
||||
allow_local_network_access, textModeBanner,
|
||||
accessKeys, systemLanguage, max_like_count,
|
||||
shared_items_federated_domains, signingPrivateKeyPem,
|
||||
CWlists, lists_enabled)
|
||||
|
@ -1191,7 +1191,7 @@ def htmlWanted(cssCache: {}, defaultTimeline: str,
|
|||
publishButtonAtTop: bool,
|
||||
authorized: bool, theme: str,
|
||||
peertubeInstances: [],
|
||||
allowLocalNetworkAccess: bool,
|
||||
allow_local_network_access: bool,
|
||||
textModeBanner: str,
|
||||
accessKeys: {}, systemLanguage: str,
|
||||
max_like_count: int,
|
||||
|
@ -1221,7 +1221,7 @@ def htmlWanted(cssCache: {}, defaultTimeline: str,
|
|||
fullWidthTimelineButtonHeader,
|
||||
iconsAsButtons, rssIconAtTop, publishButtonAtTop,
|
||||
authorized, None, theme, peertubeInstances,
|
||||
allowLocalNetworkAccess, textModeBanner,
|
||||
allow_local_network_access, textModeBanner,
|
||||
accessKeys, systemLanguage, max_like_count,
|
||||
shared_items_federated_domains, signingPrivateKeyPem,
|
||||
CWlists, lists_enabled)
|
||||
|
@ -1247,7 +1247,7 @@ def htmlInbox(cssCache: {}, defaultTimeline: str,
|
|||
publishButtonAtTop: bool,
|
||||
authorized: bool, theme: str,
|
||||
peertubeInstances: [],
|
||||
allowLocalNetworkAccess: bool,
|
||||
allow_local_network_access: bool,
|
||||
textModeBanner: str,
|
||||
accessKeys: {}, systemLanguage: str,
|
||||
max_like_count: int,
|
||||
|
@ -1277,7 +1277,7 @@ def htmlInbox(cssCache: {}, defaultTimeline: str,
|
|||
fullWidthTimelineButtonHeader,
|
||||
iconsAsButtons, rssIconAtTop, publishButtonAtTop,
|
||||
authorized, None, theme, peertubeInstances,
|
||||
allowLocalNetworkAccess, textModeBanner,
|
||||
allow_local_network_access, textModeBanner,
|
||||
accessKeys, systemLanguage, max_like_count,
|
||||
shared_items_federated_domains, signingPrivateKeyPem,
|
||||
CWlists, lists_enabled)
|
||||
|
@ -1303,7 +1303,7 @@ def htmlBookmarks(cssCache: {}, defaultTimeline: str,
|
|||
publishButtonAtTop: bool,
|
||||
authorized: bool, theme: str,
|
||||
peertubeInstances: [],
|
||||
allowLocalNetworkAccess: bool,
|
||||
allow_local_network_access: bool,
|
||||
textModeBanner: str,
|
||||
accessKeys: {}, systemLanguage: str,
|
||||
max_like_count: int,
|
||||
|
@ -1333,7 +1333,7 @@ def htmlBookmarks(cssCache: {}, defaultTimeline: str,
|
|||
fullWidthTimelineButtonHeader,
|
||||
iconsAsButtons, rssIconAtTop, publishButtonAtTop,
|
||||
authorized, None, theme, peertubeInstances,
|
||||
allowLocalNetworkAccess, textModeBanner,
|
||||
allow_local_network_access, textModeBanner,
|
||||
accessKeys, systemLanguage, max_like_count,
|
||||
shared_items_federated_domains, signingPrivateKeyPem,
|
||||
CWlists, lists_enabled)
|
||||
|
@ -1359,7 +1359,7 @@ def htmlInboxDMs(cssCache: {}, defaultTimeline: str,
|
|||
publishButtonAtTop: bool,
|
||||
authorized: bool, theme: str,
|
||||
peertubeInstances: [],
|
||||
allowLocalNetworkAccess: bool,
|
||||
allow_local_network_access: bool,
|
||||
textModeBanner: str,
|
||||
accessKeys: {}, systemLanguage: str,
|
||||
max_like_count: int,
|
||||
|
@ -1384,7 +1384,7 @@ def htmlInboxDMs(cssCache: {}, defaultTimeline: str,
|
|||
fullWidthTimelineButtonHeader,
|
||||
iconsAsButtons, rssIconAtTop, publishButtonAtTop,
|
||||
authorized, None, theme, peertubeInstances,
|
||||
allowLocalNetworkAccess, textModeBanner,
|
||||
allow_local_network_access, textModeBanner,
|
||||
accessKeys, systemLanguage, max_like_count,
|
||||
shared_items_federated_domains, signingPrivateKeyPem,
|
||||
CWlists, lists_enabled)
|
||||
|
@ -1410,7 +1410,7 @@ def htmlInboxReplies(cssCache: {}, defaultTimeline: str,
|
|||
publishButtonAtTop: bool,
|
||||
authorized: bool, theme: str,
|
||||
peertubeInstances: [],
|
||||
allowLocalNetworkAccess: bool,
|
||||
allow_local_network_access: bool,
|
||||
textModeBanner: str,
|
||||
accessKeys: {}, systemLanguage: str,
|
||||
max_like_count: int,
|
||||
|
@ -1436,7 +1436,7 @@ def htmlInboxReplies(cssCache: {}, defaultTimeline: str,
|
|||
fullWidthTimelineButtonHeader,
|
||||
iconsAsButtons, rssIconAtTop, publishButtonAtTop,
|
||||
authorized, None, theme, peertubeInstances,
|
||||
allowLocalNetworkAccess, textModeBanner,
|
||||
allow_local_network_access, textModeBanner,
|
||||
accessKeys, systemLanguage, max_like_count,
|
||||
shared_items_federated_domains, signingPrivateKeyPem,
|
||||
CWlists, lists_enabled)
|
||||
|
@ -1462,7 +1462,7 @@ def htmlInboxMedia(cssCache: {}, defaultTimeline: str,
|
|||
publishButtonAtTop: bool,
|
||||
authorized: bool, theme: str,
|
||||
peertubeInstances: [],
|
||||
allowLocalNetworkAccess: bool,
|
||||
allow_local_network_access: bool,
|
||||
textModeBanner: str,
|
||||
accessKeys: {}, systemLanguage: str,
|
||||
max_like_count: int,
|
||||
|
@ -1488,7 +1488,7 @@ def htmlInboxMedia(cssCache: {}, defaultTimeline: str,
|
|||
fullWidthTimelineButtonHeader,
|
||||
iconsAsButtons, rssIconAtTop, publishButtonAtTop,
|
||||
authorized, None, theme, peertubeInstances,
|
||||
allowLocalNetworkAccess, textModeBanner,
|
||||
allow_local_network_access, textModeBanner,
|
||||
accessKeys, systemLanguage, max_like_count,
|
||||
shared_items_federated_domains, signingPrivateKeyPem,
|
||||
CWlists, lists_enabled)
|
||||
|
@ -1514,7 +1514,7 @@ def htmlInboxBlogs(cssCache: {}, defaultTimeline: str,
|
|||
publishButtonAtTop: bool,
|
||||
authorized: bool, theme: str,
|
||||
peertubeInstances: [],
|
||||
allowLocalNetworkAccess: bool,
|
||||
allow_local_network_access: bool,
|
||||
textModeBanner: str,
|
||||
accessKeys: {}, systemLanguage: str,
|
||||
max_like_count: int,
|
||||
|
@ -1540,7 +1540,7 @@ def htmlInboxBlogs(cssCache: {}, defaultTimeline: str,
|
|||
fullWidthTimelineButtonHeader,
|
||||
iconsAsButtons, rssIconAtTop, publishButtonAtTop,
|
||||
authorized, None, theme, peertubeInstances,
|
||||
allowLocalNetworkAccess, textModeBanner,
|
||||
allow_local_network_access, textModeBanner,
|
||||
accessKeys, systemLanguage, max_like_count,
|
||||
shared_items_federated_domains, signingPrivateKeyPem,
|
||||
CWlists, lists_enabled)
|
||||
|
@ -1567,7 +1567,7 @@ def htmlInboxFeatures(cssCache: {}, defaultTimeline: str,
|
|||
authorized: bool,
|
||||
theme: str,
|
||||
peertubeInstances: [],
|
||||
allowLocalNetworkAccess: bool,
|
||||
allow_local_network_access: bool,
|
||||
textModeBanner: str,
|
||||
accessKeys: {}, systemLanguage: str,
|
||||
max_like_count: int,
|
||||
|
@ -1592,7 +1592,7 @@ def htmlInboxFeatures(cssCache: {}, defaultTimeline: str,
|
|||
fullWidthTimelineButtonHeader,
|
||||
iconsAsButtons, rssIconAtTop, publishButtonAtTop,
|
||||
authorized, None, theme, peertubeInstances,
|
||||
allowLocalNetworkAccess, textModeBanner,
|
||||
allow_local_network_access, textModeBanner,
|
||||
accessKeys, systemLanguage, max_like_count,
|
||||
shared_items_federated_domains, signingPrivateKeyPem,
|
||||
CWlists, lists_enabled)
|
||||
|
@ -1618,7 +1618,7 @@ def htmlInboxNews(cssCache: {}, defaultTimeline: str,
|
|||
publishButtonAtTop: bool,
|
||||
authorized: bool, theme: str,
|
||||
peertubeInstances: [],
|
||||
allowLocalNetworkAccess: bool,
|
||||
allow_local_network_access: bool,
|
||||
textModeBanner: str,
|
||||
accessKeys: {}, systemLanguage: str,
|
||||
max_like_count: int,
|
||||
|
@ -1643,7 +1643,7 @@ def htmlInboxNews(cssCache: {}, defaultTimeline: str,
|
|||
fullWidthTimelineButtonHeader,
|
||||
iconsAsButtons, rssIconAtTop, publishButtonAtTop,
|
||||
authorized, None, theme, peertubeInstances,
|
||||
allowLocalNetworkAccess, textModeBanner,
|
||||
allow_local_network_access, textModeBanner,
|
||||
accessKeys, systemLanguage, max_like_count,
|
||||
shared_items_federated_domains, signingPrivateKeyPem,
|
||||
CWlists, lists_enabled)
|
||||
|
@ -1669,7 +1669,7 @@ def htmlOutbox(cssCache: {}, defaultTimeline: str,
|
|||
publishButtonAtTop: bool,
|
||||
authorized: bool, theme: str,
|
||||
peertubeInstances: [],
|
||||
allowLocalNetworkAccess: bool,
|
||||
allow_local_network_access: bool,
|
||||
textModeBanner: str,
|
||||
accessKeys: {}, systemLanguage: str,
|
||||
max_like_count: int,
|
||||
|
@ -1696,7 +1696,7 @@ def htmlOutbox(cssCache: {}, defaultTimeline: str,
|
|||
showPublishAsIcon, fullWidthTimelineButtonHeader,
|
||||
iconsAsButtons, rssIconAtTop, publishButtonAtTop,
|
||||
authorized, None, theme, peertubeInstances,
|
||||
allowLocalNetworkAccess, textModeBanner,
|
||||
allow_local_network_access, textModeBanner,
|
||||
accessKeys, systemLanguage, max_like_count,
|
||||
shared_items_federated_domains, signingPrivateKeyPem,
|
||||
CWlists, lists_enabled)
|
||||
|
|
Loading…
Reference in New Issue