diff --git a/content.py b/content.py index 1cb4ee9b..b685987b 100644 --- a/content.py +++ b/content.py @@ -93,7 +93,7 @@ def addEmoji(baseDir: str,wordStr: str,httpPrefix: str,domain: str,replaceEmoji: 'type': 'Emoji' } replaceEmoji[wordStr]= \ - "" + "\""+emoji+"\"" return True def addMention(wordStr: str,httpPrefix: str,following: str,replaceMentions: {},recipients: []) -> bool: diff --git a/daemon.py b/daemon.py index e8013c5f..a540cd82 100644 --- a/daemon.py +++ b/daemon.py @@ -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 diff --git a/epicyon-profile.css b/epicyon-profile.css index d65edd85..2727444b 100644 --- a/epicyon-profile.css +++ b/epicyon-profile.css @@ -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 { diff --git a/posts.py b/posts.py index 293a7c64..adda0f61 100644 --- a/posts.py +++ b/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)