diff --git a/webapp_headerbuttons.py b/webapp_headerbuttons.py index 241902b8..2b138f5b 100644 --- a/webapp_headerbuttons.py +++ b/webapp_headerbuttons.py @@ -7,6 +7,7 @@ __email__ = "bob@freedombone.net" __status__ = "Production" +import os import time from datetime import datetime from happening import todaysEventsCheck @@ -87,11 +88,15 @@ def headerButtonsTimeline(defaultTimeline: str, '">' + htmlHighlightLabel(translate['DM'], newDM) + \ '' - tlStr += \ - '' + repliesIndexFilename = \ + baseDir + '/accounts/' + \ + nickname + '@' + domain + '/tlreplies.index' + if os.path.isfile(repliesIndexFilename): + tlStr += \ + '' # typically the media button if defaultTimeline != 'tlmedia':