Another user path

main
Bob Mottram 2023-08-07 09:46:52 +01:00
parent b72bce31d0
commit 92adce255d
2 changed files with 4 additions and 3 deletions

View File

@ -2396,13 +2396,14 @@ class JsonLdProcessor(object):
# hash bnode paths
path_namer = UniqueNamer('_:b')
path_namer.get_name(bnode)
bnode_path = None
try:
bnode_path = self._hash_paths(
bnode, bnodes, namer, path_namer)
results.append(bnode_path)
except BaseException:
print('WARN: jsonld bnode_path failed')
pass
if bnode_path:
results.append(bnode_path)
# name bnodes in hash order
cmp_hashes = cmp_to_key(lambda x, y: cmp(x['hash'], y['hash']))

View File

@ -1472,7 +1472,7 @@ def get_user_paths() -> []:
return ('/users/', '/profile/', '/accounts/', '/channel/', '/u/',
'/c/', '/m/', '/video-channels/', '/author/',
'/activitypub/', '/actors/', '/snac/', '/@/', '/~/',
'/fediverse/blog/')
'/fediverse/blog/', '/user/')
def get_group_paths() -> []: