diff --git a/content.py b/content.py index a78ca9149..f9ea8f11e 100644 --- a/content.py +++ b/content.py @@ -23,7 +23,9 @@ def addMentions(baseDir: str,httpPrefix: str, \ domain=domain.split(':')[0] followingFilename=baseDir+'/accounts/'+nickname+'@'+domain+'/following.txt' if not os.path.isfile(followingFilename): - return content + content=content.replace('\n','
') + content='
'+content+'
' + return content.replace('','') with open(followingFilename, "r") as f: following = f.readlines() for wordStr in words: