Alignment of emoji

master
Bob Mottram 2019-08-09 18:42:11 +01:00
parent 692fd7399a
commit de382b87a4
4 changed files with 7 additions and 7 deletions

View File

@ -93,7 +93,7 @@ def addEmoji(baseDir: str,wordStr: str,httpPrefix: str,domain: str,replaceEmoji:
'type': 'Emoji'
}
replaceEmoji[wordStr]= \
"<img src=\""+emojiUrl+"\" class=\"emoji\"/>"
"<img src=\""+emojiUrl+"\" alt=\""+emoji+"\" align=\"middle\" class=\"emoji\"/>"
return True
def addMention(wordStr: str,httpPrefix: str,following: str,replaceMentions: {},recipients: []) -> bool:

View File

@ -513,7 +513,7 @@ class PubServer(BaseHTTPRequestHandler):
with open(emojiFilename, 'rb') as avFile:
emojiBinary = avFile.read()
self.wfile.write(emojiBinary)
return
return
self._404()
return
# show media

View File

@ -80,6 +80,7 @@ body, html {
.hero-text img.emoji {
width: 50px;
float: none;
}
.hero-text button {
@ -294,10 +295,7 @@ body, html {
.container img.emoji {
width: 50px;
padding: 0px 7px;
margin-right: 20px;
border-radius: 10%;
float: center;
float: none;
}
.containericons {

View File

@ -375,7 +375,9 @@ def updateHashtagsIndex(baseDir: str,tag: {},newPostId: str) -> None:
"""Writes the post url for hashtags to a file
This allows posts for a hashtag to be quickly looked up
"""
# create hashtags directory
if tag['type']!='Hashtag':
return
# create hashtags directory
tagsDir=baseDir+'/tags'
if not os.path.isdir(tagsDir):
os.mkdir(tagsDir)