video-channels users path

merge-requests/30/head
Bob Mottram 2021-09-13 14:57:37 +01:00
parent d330241fe6
commit 851c66f38c
1 changed files with 4 additions and 3 deletions

View File

@ -1012,14 +1012,15 @@ def getUserPaths() -> []:
"""Returns possible user paths """Returns possible user paths
e.g. /users/nickname, /channel/nickname e.g. /users/nickname, /channel/nickname
""" """
return ('/users/', '/profile/', '/accounts/', '/channel/', '/u/', '/c/') return ('/users/', '/profile/', '/accounts/', '/channel/', '/u/',
'/c/', '/video-channels/')
def getGroupPaths() -> []: def getGroupPaths() -> []:
"""Returns possible group paths """Returns possible group paths
e.g. https://lemmy/c/groupname e.g. https://lemmy/c/groupname
""" """
return ['/c/'] return ['/c/', '/video-channels/']
def getDomainFromActor(actor: str) -> (str, int): def getDomainFromActor(actor: str) -> (str, int):
@ -1773,7 +1774,7 @@ def isValidLanguage(text: str) -> bool:
def _getReservedWords() -> str: def _getReservedWords() -> str:
return ('inbox', 'dm', 'outbox', 'following', return ('inbox', 'dm', 'outbox', 'following',
'public', 'followers', 'category', 'public', 'followers', 'category',
'channel', 'calendar', 'channel', 'calendar', 'video-channels',
'tlreplies', 'tlmedia', 'tlblogs', 'tlreplies', 'tlmedia', 'tlblogs',
'tlblogs', 'tlfeatures', 'tlblogs', 'tlfeatures',
'moderation', 'moderationaction', 'moderation', 'moderationaction',