mirror of https://gitlab.com/bashrc2/epicyon
Comments
parent
1af83ed1aa
commit
938a3aa266
|
@ -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/'
|
||||||
|
|
Loading…
Reference in New Issue