mirror of https://gitlab.com/bashrc2/epicyon
Another user path
parent
b72bce31d0
commit
92adce255d
|
@ -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']))
|
||||
|
|
2
utils.py
2
utils.py
|
@ -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() -> []:
|
||||
|
|
Loading…
Reference in New Issue