mirror of https://gitlab.com/bashrc2/epicyon
Another user path
parent
b72bce31d0
commit
92adce255d
|
@ -2396,13 +2396,14 @@ class JsonLdProcessor(object):
|
||||||
# hash bnode paths
|
# hash bnode paths
|
||||||
path_namer = UniqueNamer('_:b')
|
path_namer = UniqueNamer('_:b')
|
||||||
path_namer.get_name(bnode)
|
path_namer.get_name(bnode)
|
||||||
|
bnode_path = None
|
||||||
try:
|
try:
|
||||||
bnode_path = self._hash_paths(
|
bnode_path = self._hash_paths(
|
||||||
bnode, bnodes, namer, path_namer)
|
bnode, bnodes, namer, path_namer)
|
||||||
results.append(bnode_path)
|
|
||||||
except BaseException:
|
except BaseException:
|
||||||
print('WARN: jsonld bnode_path failed')
|
print('WARN: jsonld bnode_path failed')
|
||||||
pass
|
if bnode_path:
|
||||||
|
results.append(bnode_path)
|
||||||
|
|
||||||
# name bnodes in hash order
|
# name bnodes in hash order
|
||||||
cmp_hashes = cmp_to_key(lambda x, y: cmp(x['hash'], y['hash']))
|
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/',
|
return ('/users/', '/profile/', '/accounts/', '/channel/', '/u/',
|
||||||
'/c/', '/m/', '/video-channels/', '/author/',
|
'/c/', '/m/', '/video-channels/', '/author/',
|
||||||
'/activitypub/', '/actors/', '/snac/', '/@/', '/~/',
|
'/activitypub/', '/actors/', '/snac/', '/@/', '/~/',
|
||||||
'/fediverse/blog/')
|
'/fediverse/blog/', '/user/')
|
||||||
|
|
||||||
|
|
||||||
def get_group_paths() -> []:
|
def get_group_paths() -> []:
|
||||||
|
|
Loading…
Reference in New Issue