forked from indymedia/epicyon
Alignment of emoji
parent
692fd7399a
commit
de382b87a4
|
@ -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:
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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 {
|
||||
|
|
4
posts.py
4
posts.py
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue