mirror of https://gitlab.com/bashrc2/epicyon
Only include federated shares if the domains list is not empty
parent
974b97dc87
commit
712f7d9b14
|
@ -38,6 +38,8 @@ def _getLeftColumnShares(baseDir: str,
|
||||||
"""
|
"""
|
||||||
pageNumber = 1
|
pageNumber = 1
|
||||||
actor = httpPrefix + '://' + domainFull + '/users/' + nickname
|
actor = httpPrefix + '://' + domainFull + '/users/' + nickname
|
||||||
|
# NOTE: this could potentially be slow if the number of federated
|
||||||
|
# shared items is large
|
||||||
sharesJson, lastPage = \
|
sharesJson, lastPage = \
|
||||||
sharesTimelineJson(actor, pageNumber, maxSharesInLeftColumn,
|
sharesTimelineJson(actor, pageNumber, maxSharesInLeftColumn,
|
||||||
baseDir, maxSharesInLeftColumn,
|
baseDir, maxSharesInLeftColumn,
|
||||||
|
|
|
@ -362,6 +362,7 @@ def sharesTimelineJson(actor: str, pageNumber: int, itemsPerPage: int,
|
||||||
if ctr >= maxSharesPerAccount:
|
if ctr >= maxSharesPerAccount:
|
||||||
break
|
break
|
||||||
break
|
break
|
||||||
|
if sharedItemsFederatedDomains:
|
||||||
catalogsDir = baseDir + '/cache/catalogs'
|
catalogsDir = baseDir + '/cache/catalogs'
|
||||||
if os.path.isdir(catalogsDir):
|
if os.path.isdir(catalogsDir):
|
||||||
for subdir, dirs, files in os.walk(catalogsDir):
|
for subdir, dirs, files in os.walk(catalogsDir):
|
||||||
|
|
Loading…
Reference in New Issue