Remove icons path argument

main
Bob Mottram 2020-12-09 13:31:54 +00:00
parent ffdc49a56c
commit 14d7985353
12 changed files with 66 additions and 89 deletions

View File

@ -172,7 +172,7 @@ def inboxStorePostToHtmlCache(recentPostsCache: {}, maxRecentPosts: int,
if boxname != 'tlevents' and boxname != 'outbox':
boxname = 'inbox'
individualPostAsHtml(True, recentPostsCache, maxRecentPosts,
'icons', translate, pageNumber,
translate, pageNumber,
baseDir, session, cachedWebfingers, personCache,
nickname, domain, port, postJsonObject,
avatarUrl, True, allowDeletion,

View File

@ -67,7 +67,7 @@ def getLeftColumnShares(baseDir: str,
def getLeftColumnContent(baseDir: str, nickname: str, domainFull: str,
httpPrefix: str, translate: {},
iconsPath: str, editor: bool,
editor: bool,
showBackButton: bool, timelinePath: str,
rssIconAtTop: bool, showHeaderImage: bool,
frontPage: bool) -> str:
@ -284,12 +284,12 @@ def htmlLinksMobile(cssCache: {}, baseDir: str,
htmlStr += '<center>' + \
headerButtonsFrontScreen(translate, nickname,
'links', authorized,
iconsAsButtons, 'icons') + '</center>'
iconsAsButtons) + '</center>'
if linksExist(baseDir):
htmlStr += \
getLeftColumnContent(baseDir, nickname, domainFull,
httpPrefix, translate,
'icons', editor,
editor,
False, timelinePath,
rssIconAtTop, False, False)
else:

View File

@ -43,7 +43,7 @@ def votesIndicator(totalVotes: int, positiveVoting: bool) -> str:
def getRightColumnContent(baseDir: str, nickname: str, domainFull: str,
httpPrefix: str, translate: {},
iconsPath: str, moderator: bool, editor: bool,
moderator: bool, editor: bool,
newswire: {}, positiveVoting: bool,
showBackButton: bool, timelinePath: str,
showPublishButton: bool,
@ -196,7 +196,7 @@ def getRightColumnContent(baseDir: str, nickname: str, domainFull: str,
# show the newswire lines
newswireContentStr = \
htmlNewswire(baseDir, newswire, nickname, moderator, translate,
positiveVoting, 'icons')
positiveVoting)
htmlStr += newswireContentStr
# show the rss icon at the bottom, typically on the right hand side
@ -206,7 +206,7 @@ def getRightColumnContent(baseDir: str, nickname: str, domainFull: str,
def htmlNewswire(baseDir: str, newswire: {}, nickname: str, moderator: bool,
translate: {}, positiveVoting: bool, iconsPath: str) -> str:
translate: {}, positiveVoting: bool) -> str:
"""Converts a newswire dict into html
"""
separatorStr = htmlPostSeparator(baseDir, 'right')
@ -444,12 +444,12 @@ def htmlNewswireMobile(cssCache: {}, baseDir: str, nickname: str,
htmlStr += '<center>' + \
headerButtonsFrontScreen(translate, nickname,
'newswire', authorized,
iconsAsButtons, 'icons') + '</center>'
iconsAsButtons) + '</center>'
if newswire:
htmlStr += \
getRightColumnContent(baseDir, nickname, domainFull,
httpPrefix, translate,
'icons', moderator, editor,
moderator, editor,
newswire, positiveVoting,
False, timelinePath, showPublishButton,
showPublishAsIcon, rssIconAtTop, False,

View File

@ -61,7 +61,7 @@ def htmlConfirmDelete(cssCache: {},
deletePostStr = htmlHeaderWithExternalStyle(cssFilename)
deletePostStr += \
individualPostAsHtml(True, recentPostsCache, maxRecentPosts,
'icons', translate, pageNumber,
translate, pageNumber,
baseDir, session, wfRequest, personCache,
nickname, domain, port, postJsonObject,
None, True, False,

View File

@ -60,7 +60,6 @@ def htmlFollowingDataList(baseDir: str, nickname: str,
def htmlNewPostDropDown(scopeIcon: str, scopeDescription: str,
replyStr: str,
translate: {},
iconsPath: str,
showPublicOnDropdown: bool,
defaultTimeline: str,
pathBase: str,
@ -619,7 +618,6 @@ def htmlNewPost(cssCache: {}, mediaInstance: bool, translate: {},
htmlNewPostDropDown(scopeIcon, scopeDescription,
replyStr,
translate,
'icons',
showPublicOnDropdown,
defaultTimeline,
pathBase,

View File

@ -55,7 +55,7 @@ def htmlFrontScreenPosts(recentPostsCache: {}, maxRecentPosts: int,
postStr = \
individualPostAsHtml(True, recentPostsCache,
maxRecentPosts,
'icons', translate, None,
translate, None,
baseDir, session, wfRequest,
personCache,
nickname, domain, port, item,
@ -101,7 +101,7 @@ def htmlFrontScreen(rssIconAtTop: bool,
loginButton = headerButtonsFrontScreen(translate, nickname,
'features', authorized,
iconsAsButtons, 'icons')
iconsAsButtons)
# If this is the news account then show a different banner
bannerFile, bannerFilename = getBannerFile(baseDir, nickname, domain)
@ -123,8 +123,7 @@ def htmlFrontScreen(rssIconAtTop: bool,
profileHeaderStr += \
getLeftColumnContent(baseDir, 'news', domainFull,
httpPrefix, translate,
'icons', False,
False, None, rssIconAtTop, True,
False, False, None, rssIconAtTop, True,
True)
profileHeaderStr += ' </td>\n'
profileHeaderStr += ' <td valign="top" class="col-center">\n'
@ -154,8 +153,7 @@ def htmlFrontScreen(rssIconAtTop: bool,
profileFooterStr += \
getRightColumnContent(baseDir, 'news', domainFull,
httpPrefix, translate,
'icons', False, False,
newswire, False,
False, False, newswire, False,
False, None, False, False,
False, True, authorized, True)
profileFooterStr += ' </td>\n'

View File

@ -38,7 +38,6 @@ def headerButtonsTimeline(defaultTimeline: str,
newPostButtonStr: str,
baseDir: str,
nickname: str, domain: str,
iconsPath: str,
timelineStartTime,
newCalendarEvent: bool,
calendarPath: str,

View File

@ -201,7 +201,7 @@ def getAvatarImageUrl(session,
return avatarUrl
def getBrokenLinkSubstitute(iconsPath: str) -> str:
def getBrokenLinkSubstitute() -> str:
"""Returns html used to show a default image if the link to
an image is broken
"""
@ -213,8 +213,7 @@ def getAvatarImageHtml(showAvatarOptions: bool,
nickname: str, domainFull: str,
avatarUrl: str, postActor: str,
translate: {}, avatarPosition: str,
pageNumber: int, messageIdStr: str,
iconsPath: str) -> str:
pageNumber: int, messageIdStr: str) -> str:
"""Get html for the avatar image
"""
avatarLink = ''
@ -223,7 +222,7 @@ def getAvatarImageHtml(showAvatarOptions: bool,
avatarLink += \
' <img loading="lazy" src="' + avatarUrl + '" title="' + \
translate['Show profile'] + '" alt=" "' + avatarPosition + \
getBrokenLinkSubstitute('icons') + '/></a>\n'
getBrokenLinkSubstitute() + '/></a>\n'
if showAvatarOptions and \
domainFull + '/users/' + nickname not in postActor:
@ -236,21 +235,21 @@ def getAvatarImageHtml(showAvatarOptions: bool,
' <img loading="lazy" title="' + \
translate['Show options for this person'] + \
'" src="' + avatarUrl + '" ' + avatarPosition + \
getBrokenLinkSubstitute('icons') + '/></a>\n'
getBrokenLinkSubstitute() + '/></a>\n'
else:
# don't link to the person options for the news account
avatarLink += \
' <img loading="lazy" title="' + \
translate['Show options for this person'] + \
'" src="' + avatarUrl + '" ' + avatarPosition + \
getBrokenLinkSubstitute('icons') + '/>\n'
getBrokenLinkSubstitute() + '/>\n'
return avatarLink.strip()
def getReplyIconHtml(nickname: str, isPublicRepeat: bool,
showIcons: bool, commentsEnabled: bool,
postJsonObject: {}, pageNumberParam: str,
iconsPath: str, translate: {}) -> str:
translate: {}) -> str:
"""Returns html for the reply icon/button
"""
replyStr = ''
@ -308,7 +307,7 @@ def getReplyIconHtml(nickname: str, isPublicRepeat: bool,
def getEditIconHtml(baseDir: str, nickname: str, domainFull: str,
postJsonObject: {}, actorNickname: str,
translate: {}, iconsPath: str, isEvent: bool) -> str:
translate: {}, isEvent: bool) -> str:
"""Returns html for the edit icon/button
"""
editStr = ''
@ -370,7 +369,7 @@ def getAnnounceIconHtml(nickname: str, domainFull: str,
translate: {},
pageNumberParam: str,
timelinePostBookmark: str,
boxName: str, iconsPath: str) -> str:
boxName: str) -> str:
"""Returns html for announce icon/button
"""
announceStr = ''
@ -412,7 +411,7 @@ def getLikeIconHtml(nickname: str, domainFull: str,
postStartTime,
translate: {}, pageNumberParam: str,
timelinePostBookmark: str,
boxName: str, iconsPath: str) -> str:
boxName: str) -> str:
"""Returns html for like icon/button
"""
likeStr = ''
@ -469,8 +468,7 @@ def getBookmarkIconHtml(nickname: str, domainFull: str,
enableTimingLog: bool,
postStartTime, boxName: str,
pageNumberParam: str,
timelinePostBookmark: str,
iconsPath: str) -> str:
timelinePostBookmark: str) -> str:
"""Returns html for bookmark icon/button
"""
bookmarkStr = ''
@ -507,7 +505,6 @@ def getMuteIconHtml(isMuted: bool,
nickname: str, domainFull: str,
allowDeletion: bool,
pageNumberParam: str,
iconsPath: str,
boxName: str,
timelinePostBookmark: str,
translate: {}) -> str:
@ -552,7 +549,6 @@ def getDeleteIconHtml(nickname: str, domainFull: str,
messageId: str,
postJsonObject: {},
pageNumberParam: str,
iconsPath: str,
translate: {}) -> str:
"""Returns html for delete icon/button
"""
@ -644,7 +640,7 @@ def getBlogCitationsHtml(boxName: str,
return citationsStr
def boostOwnTootHtml(translate: {}, iconsPath) -> str:
def boostOwnTootHtml(translate: {}) -> str:
"""The html title for announcing your own post
"""
return ' <img loading="lazy" title="' + \
@ -654,7 +650,7 @@ def boostOwnTootHtml(translate: {}, iconsPath) -> str:
'/repeat_inactive.png" class="announceOrReply"/>\n'
def announceUnattributedHtml(translate: {}, iconsPath: str,
def announceUnattributedHtml(translate: {},
postJsonObject: {}) -> str:
"""Returns the html for an announce title where there
is no attribution on the announced post
@ -669,7 +665,7 @@ def announceUnattributedHtml(translate: {}, iconsPath: str,
'" class="announceOrReply">@unattributed</a>\n'
def announceWithoutDisplayNameHtml(translate: {}, iconsPath: str,
def announceWithoutDisplayNameHtml(translate: {},
announceNickname: str,
announceDomain: str,
postJsonObject: {}) -> str:
@ -686,7 +682,6 @@ def announceWithoutDisplayNameHtml(translate: {}, iconsPath: str,
def announceWithDisplayNameHtml(translate: {},
iconsPath: str,
postJsonObject: {},
announceDisplayName: str) -> str:
"""Returns html for an announce having a display name
@ -709,7 +704,6 @@ def getPostTitleAnnounceHtml(baseDir: str,
postJsonObject: {},
postActor: str,
translate: {},
iconsPath: str,
enableTimingLog: bool,
postStartTime,
boxName: str,
@ -732,7 +726,7 @@ def getPostTitleAnnounceHtml(baseDir: str,
attributedTo = postJsonObject['object']['attributedTo']
if attributedTo.startswith(postActor):
titleStr += boostOwnTootHtml(translate, 'icons')
titleStr += boostOwnTootHtml(translate)
else:
# boosting another person's post
logPostTiming(enableTimingLog, postStartTime, '13.2')
@ -759,7 +753,6 @@ def getPostTitleAnnounceHtml(baseDir: str,
logPostTiming(enableTimingLog, postStartTime, '13.3.1')
titleStr += \
announceWithDisplayNameHtml(translate,
'icons',
postJsonObject,
announceDisplayName)
# show avatar of person replied to
@ -790,27 +783,27 @@ def getPostTitleAnnounceHtml(baseDir: str,
announceAvatarUrl + '" ' + \
'title="' + translate[idx] + \
'" alt=" "' + avatarPosition + \
getBrokenLinkSubstitute('icons') + \
getBrokenLinkSubstitute() + \
'/></a>\n </div>\n'
else:
titleStr += \
announceWithoutDisplayNameHtml(translate, 'icons',
announceWithoutDisplayNameHtml(translate,
announceNickname,
announceDomain,
postJsonObject)
else:
titleStr += \
announceUnattributedHtml(translate, 'icons',
announceUnattributedHtml(translate,
postJsonObject)
else:
titleStr += \
announceUnattributedHtml(translate, 'icons', postJsonObject)
announceUnattributedHtml(translate, postJsonObject)
return (titleStr, replyAvatarImageInPost,
containerClassIcons, containerClass)
def replyToYourselfHtml(translate: {}, iconsPath: str) -> str:
def replyToYourselfHtml(translate: {}, ) -> str:
"""Returns html for a title which is a reply to yourself
"""
return ' <img loading="lazy" title="' + \
@ -820,7 +813,7 @@ def replyToYourselfHtml(translate: {}, iconsPath: str) -> str:
'/reply.png" class="announceOrReply"/>\n'
def replyToUnknownHtml(translate: {}, iconsPath: str,
def replyToUnknownHtml(translate: {},
postJsonObject: {}) -> str:
"""Returns the html title for a reply to an unknown handle
"""
@ -833,7 +826,7 @@ def replyToUnknownHtml(translate: {}, iconsPath: str,
'" class="announceOrReply">@unknown</a>\n'
def replyWithUnknownPathHtml(translate: {}, iconsPath: str,
def replyWithUnknownPathHtml(translate: {},
postJsonObject: {},
postDomain: str) -> str:
"""Returns html title for a reply with an unknown path
@ -850,7 +843,7 @@ def replyWithUnknownPathHtml(translate: {}, iconsPath: str,
postDomain + '</a>\n'
def getReplyHtml(translate: {}, iconsPath: str,
def getReplyHtml(translate: {},
inReplyTo: str, replyDisplayName: str) -> str:
"""Returns html title for a reply
"""
@ -865,7 +858,7 @@ def getReplyHtml(translate: {}, iconsPath: str,
replyDisplayName + '</a>\n'
def getReplyWithoutDisplayName(translate: {}, iconsPath: str,
def getReplyWithoutDisplayName(translate: {},
inReplyTo: str,
replyNickname: str, replyDomain: str) -> str:
"""Returns html for a reply without a display name,
@ -888,7 +881,6 @@ def getPostTitleReplyHtml(baseDir: str,
postJsonObject: {},
postActor: str,
translate: {},
iconsPath: str,
enableTimingLog: bool,
postStartTime,
boxName: str,
@ -912,7 +904,7 @@ def getPostTitleReplyHtml(baseDir: str,
containerClassIcons = 'containericons darker'
containerClass = 'container darker'
if postJsonObject['object']['inReplyTo'].startswith(postActor):
titleStr += replyToYourselfHtml(translate, 'icons')
titleStr += replyToYourselfHtml(translate)
return (titleStr, replyAvatarImageInPost,
containerClassIcons, containerClass)
@ -945,8 +937,7 @@ def getPostTitleReplyHtml(baseDir: str,
logPostTiming(enableTimingLog, postStartTime, '13.6')
titleStr += \
getReplyHtml(translate, 'icons',
inReplyTo, replyDisplayName)
getReplyHtml(translate, inReplyTo, replyDisplayName)
logPostTiming(enableTimingLog, postStartTime, '13.7')
@ -981,18 +972,18 @@ def getPostTitleReplyHtml(baseDir: str,
replyAvatarImageInPost += \
'" alt=" "' + \
avatarPosition + \
getBrokenLinkSubstitute('icons') + \
getBrokenLinkSubstitute() + \
'/></a>\n </div>\n'
else:
inReplyTo = \
postJsonObject['object']['inReplyTo']
titleStr += \
getReplyWithoutDisplayName(translate, 'icons',
getReplyWithoutDisplayName(translate,
inReplyTo,
replyNickname, replyDomain)
else:
titleStr += \
replyToUnknownHtml(translate, 'icons', postJsonObject)
replyToUnknownHtml(translate, postJsonObject)
else:
postDomain = \
postJsonObject['object']['inReplyTo']
@ -1003,7 +994,7 @@ def getPostTitleReplyHtml(baseDir: str,
postDomain = postDomain.split('/', 1)[0]
if postDomain:
titleStr += \
replyWithUnknownPathHtml(translate, 'icons',
replyWithUnknownPathHtml(translate,
postJsonObject, postDomain)
return (titleStr, replyAvatarImageInPost,
@ -1018,7 +1009,6 @@ def getPostTitleHtml(baseDir: str,
postJsonObject: {},
postActor: str,
translate: {},
iconsPath: str,
enableTimingLog: bool,
postStartTime,
boxName: str,
@ -1047,7 +1037,6 @@ def getPostTitleHtml(baseDir: str,
postJsonObject,
postActor,
translate,
'icons',
enableTimingLog,
postStartTime,
boxName,
@ -1067,7 +1056,6 @@ def getPostTitleHtml(baseDir: str,
postJsonObject,
postActor,
translate,
'icons',
enableTimingLog,
postStartTime,
boxName,
@ -1108,7 +1096,7 @@ def getFooterWithIcons(showIcons: bool,
def individualPostAsHtml(allowDownloads: bool,
recentPostsCache: {}, maxRecentPosts: int,
iconsPath: str, translate: {},
translate: {},
pageNumber: int, baseDir: str,
session, wfRequest: {}, personCache: {},
nickname: str, domain: str, port: int,
@ -1221,8 +1209,7 @@ def individualPostAsHtml(allowDownloads: bool,
nickname, domainFull,
avatarUrl, postActor,
translate, avatarPosition,
pageNumber, messageIdStr,
'icons')
pageNumber, messageIdStr)
avatarImageInPost = \
' <div class="timeline-avatar">' + avatarLink + '</div>\n'
@ -1330,7 +1317,7 @@ def individualPostAsHtml(allowDownloads: bool,
replyStr = getReplyIconHtml(nickname, isPublicRepeat,
showIcons, commentsEnabled,
postJsonObject, pageNumberParam,
'icons', translate)
translate)
logPostTiming(enableTimingLog, postStartTime, '10')
@ -1340,7 +1327,7 @@ def individualPostAsHtml(allowDownloads: bool,
editStr = getEditIconHtml(baseDir, nickname, domainFull,
postJsonObject, actorNickname,
translate, 'icons', isEvent)
translate, isEvent)
announceStr = \
getAnnounceIconHtml(nickname, domainFull,
@ -1351,7 +1338,7 @@ def individualPostAsHtml(allowDownloads: bool,
translate,
pageNumberParam,
timelinePostBookmark,
boxName, 'icons')
boxName)
logPostTiming(enableTimingLog, postStartTime, '12')
@ -1370,7 +1357,7 @@ def individualPostAsHtml(allowDownloads: bool,
postStartTime,
translate, pageNumberParam,
timelinePostBookmark,
boxName, 'icons')
boxName)
logPostTiming(enableTimingLog, postStartTime, '12.5')
@ -1382,8 +1369,7 @@ def individualPostAsHtml(allowDownloads: bool,
enableTimingLog,
postStartTime, boxName,
pageNumberParam,
timelinePostBookmark,
'icons')
timelinePostBookmark)
logPostTiming(enableTimingLog, postStartTime, '12.9')
@ -1398,7 +1384,6 @@ def individualPostAsHtml(allowDownloads: bool,
nickname, domainFull,
allowDeletion,
pageNumberParam,
'icons',
boxName,
timelinePostBookmark,
translate)
@ -1410,7 +1395,6 @@ def individualPostAsHtml(allowDownloads: bool,
messageId,
postJsonObject,
pageNumberParam,
'icons',
translate)
logPostTiming(enableTimingLog, postStartTime, '13.1')
@ -1427,7 +1411,6 @@ def individualPostAsHtml(allowDownloads: bool,
postJsonObject,
postActor,
translate,
'icons',
enableTimingLog,
postStartTime,
boxName,
@ -1659,7 +1642,7 @@ def htmlIndividualPost(cssCache: {},
postStr += \
individualPostAsHtml(True, recentPostsCache, maxRecentPosts,
'icons', translate, None,
translate, None,
baseDir, session, wfRequest, personCache,
nickname, domain, port, postJsonObject,
None, True, False,
@ -1682,7 +1665,7 @@ def htmlIndividualPost(cssCache: {},
postStr = \
individualPostAsHtml(True, recentPostsCache,
maxRecentPosts,
'icons', translate, None,
translate, None,
baseDir, session, wfRequest,
personCache,
nickname, domain, port,
@ -1711,7 +1694,7 @@ def htmlIndividualPost(cssCache: {},
postStr += \
individualPostAsHtml(True, recentPostsCache,
maxRecentPosts,
'icons', translate, None,
translate, None,
baseDir, session, wfRequest,
personCache,
nickname, domain, port, item,
@ -1744,7 +1727,7 @@ def htmlPostReplies(cssCache: {},
repliesStr += \
individualPostAsHtml(True, recentPostsCache,
maxRecentPosts,
'icons', translate, None,
translate, None,
baseDir, session, wfRequest, personCache,
nickname, domain, port, item,
None, True, False,

View File

@ -266,7 +266,7 @@ def htmlProfileAfterSearch(cssCache: {},
continue
profileStr += \
individualPostAsHtml(True, recentPostsCache, maxRecentPosts,
'icons', translate, None, baseDir,
translate, None, baseDir,
session, cachedWebfingers, personCache,
nickname, domain, port,
item, avatarUrl, False, False,
@ -282,7 +282,7 @@ def htmlProfileAfterSearch(cssCache: {},
def getProfileHeader(baseDir: str, nickname: str, domain: str,
domainFull: str, translate: {}, iconsPath: str,
domainFull: str, translate: {},
defaultTimeline: str,
displayName: str,
avatarDescription: str,
@ -561,7 +561,7 @@ def htmlProfile(rssIconAtTop: bool,
avatarUrl = profileJson['icon']['url']
profileHeaderStr = \
getProfileHeader(baseDir, nickname, domain,
domainFull, translate, 'icons',
domainFull, translate,
defaultTimeline, displayName,
avatarDescription,
profileDescriptionShort,
@ -693,7 +693,7 @@ def htmlProfilePosts(recentPostsCache: {}, maxRecentPosts: int,
postStr = \
individualPostAsHtml(True, recentPostsCache,
maxRecentPosts,
'icons', translate, None,
translate, None,
baseDir, session, wfRequest,
personCache,
nickname, domain, port, item,

View File

@ -587,7 +587,7 @@ def htmlHistorySearch(cssCache: {}, translate: {}, baseDir: str,
postStr = \
individualPostAsHtml(True, recentPostsCache,
maxRecentPosts,
'icons', translate, None,
translate, None,
baseDir, session, wfRequest,
personCache,
nickname, domain, port,
@ -752,7 +752,7 @@ def htmlHashtagSearch(cssCache: {},
postStr = \
individualPostAsHtml(allowDownloads, recentPostsCache,
maxRecentPosts,
'icons', translate, None,
translate, None,
baseDir, session, wfRequest,
personCache,
nickname, domain, port,

View File

@ -383,7 +383,7 @@ def htmlTimeline(cssCache: {}, defaultTimeline: str,
sharesButtonStr, bookmarksButtonStr,
eventsButtonStr, moderationButtonStr,
newPostButtonStr, baseDir, nickname,
domain, 'icons', timelineStartTime,
domain, timelineStartTime,
newCalendarEvent, calendarPath,
calendarImage, followApprovals,
iconsAsButtons)
@ -406,7 +406,7 @@ def htmlTimeline(cssCache: {}, defaultTimeline: str,
# left column
leftColumnStr = \
getLeftColumnContent(baseDir, nickname, domainFull,
httpPrefix, translate, 'icons',
httpPrefix, translate,
editor, False, None, rssIconAtTop,
True, False)
tlStr += ' <td valign="top" class="col-left">' + \
@ -425,7 +425,7 @@ def htmlTimeline(cssCache: {}, defaultTimeline: str,
sharesButtonStr, bookmarksButtonStr,
eventsButtonStr, moderationButtonStr,
newPostButtonStr, baseDir, nickname,
domain, 'icons', timelineStartTime,
domain, timelineStartTime,
newCalendarEvent, calendarPath,
calendarImage, followApprovals,
iconsAsButtons)
@ -540,7 +540,7 @@ def htmlTimeline(cssCache: {}, defaultTimeline: str,
currTlStr = \
individualPostAsHtml(False, recentPostsCache,
maxRecentPosts,
'icons', translate, pageNumber,
translate, pageNumber,
baseDir, session, wfRequest,
personCache,
nickname, domain, port,
@ -585,7 +585,7 @@ def htmlTimeline(cssCache: {}, defaultTimeline: str,
# right column
rightColumnStr = getRightColumnContent(baseDir, nickname, domainFull,
httpPrefix, translate, 'icons',
httpPrefix, translate,
moderator, editor,
newswire, positiveVoting,
False, None, True,

View File

@ -68,8 +68,7 @@ def htmlHashtagBlocked(cssCache: {}, baseDir: str, translate: {}) -> str:
def headerButtonsFrontScreen(translate: {},
nickname: str, boxName: str,
authorized: bool,
iconsAsButtons: bool,
iconsPath: bool) -> str:
iconsAsButtons: bool) -> str:
"""Returns the header buttons for the front page of a news instance
"""
headerStr = ''