diff --git a/webinterface.py b/webinterface.py index 0e3a4a8f9..eef036fa7 100644 --- a/webinterface.py +++ b/webinterface.py @@ -678,12 +678,17 @@ def htmlNewPost(baseDir: str,path: str,inReplyTo: str,mentions: []) -> str: newPostForm+=htmlFooter() return newPostForm -def htmlHeader(css=None,lang='en') -> str: +def htmlHeader(css=None,refreshSec=0,lang='en') -> str: + if refreshSec==0: + meta=' \n' + else: + meta=' \n' + if not css: htmlStr= \ '\n' \ - '\n' \ - ' \n' \ + '\n'+ \ + meta+ \ ' \n' \ '
\n' return htmlStr @@ -1365,8 +1370,11 @@ def htmlTimeline(pageNumber: int,itemsPerPage: int,session,baseDir: str, \ moderationButtonStr='' if moderator: moderationButtonStr='' - + tlStr=htmlHeader(profileStyle) + if boxName=='inbox' and pageNumber==1: + # refresh if on the first page of the inbox + tlStr=htmlHeader(profileStyle,240) # banner and row of buttons tlStr+= \