mirror of https://gitlab.com/bashrc2/epicyon
Merge branch 'main' of ssh://code.freedombone.net:2222/bashrc/epicyon into main
commit
e288542210
|
|
@ -5971,10 +5971,11 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
return
|
return
|
||||||
nickname = None
|
nickname = None
|
||||||
if '/users/' in path:
|
if '/users/' in path:
|
||||||
actor = \
|
nickname = path.split('/users/')[1]
|
||||||
httpPrefix + '://' + domainFull + path
|
if '/' in nickname:
|
||||||
nickname = \
|
nickname = nickname.split('/')[0]
|
||||||
getNicknameFromActor(actor)
|
if '?' in nickname:
|
||||||
|
nickname = nickname.split('?')[0]
|
||||||
hashtagStr = \
|
hashtagStr = \
|
||||||
htmlHashtagSearch(self.server.cssCache,
|
htmlHashtagSearch(self.server.cssCache,
|
||||||
nickname, domain, port,
|
nickname, domain, port,
|
||||||
|
|
|
||||||
|
|
@ -648,8 +648,7 @@ def htmlHashtagSearch(cssCache: {},
|
||||||
|
|
||||||
# check that the directory for the nickname exists
|
# check that the directory for the nickname exists
|
||||||
if nickname:
|
if nickname:
|
||||||
if not os.path.isdir(baseDir + '/accounts/' +
|
if not os.path.isdir(baseDir + '/accounts/' + nickname + '@' + domain):
|
||||||
nickname + '@' + domain):
|
|
||||||
nickname = None
|
nickname = None
|
||||||
|
|
||||||
# read the index
|
# read the index
|
||||||
|
|
@ -779,9 +778,9 @@ def htmlHashtagSearch(cssCache: {},
|
||||||
showPublishedDateOnly,
|
showPublishedDateOnly,
|
||||||
peertubeInstances,
|
peertubeInstances,
|
||||||
allowLocalNetworkAccess,
|
allowLocalNetworkAccess,
|
||||||
|
themeName,
|
||||||
showRepeats, showIcons,
|
showRepeats, showIcons,
|
||||||
manuallyApprovesFollowers,
|
manuallyApprovesFollowers,
|
||||||
themeName,
|
|
||||||
showPublicOnly,
|
showPublicOnly,
|
||||||
storeToCache)
|
storeToCache)
|
||||||
if postStr:
|
if postStr:
|
||||||
|
|
|
||||||
|
|
@ -720,10 +720,10 @@ def htmlTimeline(cssCache: {}, defaultTimeline: str,
|
||||||
showPublishedDateOnly,
|
showPublishedDateOnly,
|
||||||
peertubeInstances,
|
peertubeInstances,
|
||||||
allowLocalNetworkAccess,
|
allowLocalNetworkAccess,
|
||||||
|
theme,
|
||||||
boxName != 'dm',
|
boxName != 'dm',
|
||||||
showIndividualPostIcons,
|
showIndividualPostIcons,
|
||||||
manuallyApproveFollowers,
|
manuallyApproveFollowers,
|
||||||
theme,
|
|
||||||
False, True)
|
False, True)
|
||||||
_logTimelineTiming(enableTimingLog,
|
_logTimelineTiming(enableTimingLog,
|
||||||
timelineStartTime, boxName, '12')
|
timelineStartTime, boxName, '12')
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue