Try custom emoji if default not found

merge-requests/30/head
Bob Mottram 2021-11-01 20:31:35 +00:00
parent d414e204bb
commit 4bcc4930d2
1 changed files with 2 additions and 0 deletions

View File

@ -6723,6 +6723,8 @@ class PubServer(BaseHTTPRequestHandler):
if isImageFile(path):
emojiStr = path.split('/emoji/')[1]
emojiFilename = baseDir + '/emoji/' + emojiStr
if not os.path.isfile(emojiFilename):
emojiFilename = baseDir + '/emojicustom/' + emojiStr
if os.path.isfile(emojiFilename):
if self._etag_exists(emojiFilename):
# The file has not changed