mirror of https://gitlab.com/bashrc2/epicyon
Snake case
parent
1e84835193
commit
fd2dfb0438
|
@ -92,7 +92,7 @@ def masto_api_v1_response(path: str, calling_domain: str,
|
|||
registration: bool,
|
||||
system_language: str,
|
||||
project_version: str,
|
||||
customEmoji: [],
|
||||
custom_emoji: [],
|
||||
show_node_info_accounts: bool,
|
||||
broch_mode: bool) -> ({}, str):
|
||||
"""This is a vestigil mastodon API for the purpose
|
||||
|
@ -192,7 +192,7 @@ def masto_api_v1_response(path: str, calling_domain: str,
|
|||
}
|
||||
sendJsonStr = 'masto API timelines sent ' + path + callingInfo
|
||||
elif path.startswith('/api/v1/custom_emojis'):
|
||||
sendJson = customEmoji
|
||||
sendJson = custom_emoji
|
||||
sendJsonStr = \
|
||||
'masto API custom emojis sent ' + path + callingInfo
|
||||
|
||||
|
|
|
@ -59,7 +59,7 @@ def html_search_emoji(css_cache: {}, translate: {},
|
|||
css_filename = base_dir + '/epicyon.css'
|
||||
|
||||
emojiLookupFilename = base_dir + '/emoji/emoji.json'
|
||||
customEmojiLookupFilename = base_dir + '/emojicustom/emoji.json'
|
||||
custom_emoji_lookup_filename = base_dir + '/emojicustom/emoji.json'
|
||||
|
||||
# create header
|
||||
instanceTitle = \
|
||||
|
@ -79,10 +79,10 @@ def html_search_emoji(css_cache: {}, translate: {},
|
|||
|
||||
emojiJson = load_json(emojiLookupFilename)
|
||||
if emojiJson:
|
||||
if os.path.isfile(customEmojiLookupFilename):
|
||||
customEmojiJson = load_json(customEmojiLookupFilename)
|
||||
if customEmojiJson:
|
||||
emojiJson = dict(emojiJson, **customEmojiJson)
|
||||
if os.path.isfile(custom_emoji_lookup_filename):
|
||||
custom_emoji_json = load_json(custom_emoji_lookup_filename)
|
||||
if custom_emoji_json:
|
||||
emojiJson = dict(emojiJson, **custom_emoji_json)
|
||||
|
||||
results = {}
|
||||
for emojiName, filename in emojiJson.items():
|
||||
|
|
Loading…
Reference in New Issue