main
Bob Mottram 2021-02-02 21:54:29 +00:00
parent 1af83ed1aa
commit 938a3aa266
1 changed files with 7 additions and 3 deletions

View File

@ -76,9 +76,13 @@ def _logPostTiming(enableTimingLog: bool, postStartTime, debugId: str) -> None:
def prepareHtmlPostNickname(nickname: str, postHtml: str) -> str: def prepareHtmlPostNickname(nickname: str, postHtml: str) -> str:
"""Replaces links on html post icons, such as Reply, Repeat """html posts stored in memory are for all accounts on the instance
relative to the given nickname and they're indexed by id. However, some incoming posts may be
href="/users/sally? becomes href="/users/nickname? destined for multiple accounts (followers). This creates a problem
where the icon links whose urls begin with href="/users/nickname?
need to be changed for different nicknames to display correctly
within their timelines.
This function changes the nicknames for the icon links.
""" """
# replace the nickname # replace the nickname
usersStr = ' href="/users/' usersStr = ' href="/users/'